/*************************************************************************\ * Copyright (c) 2002 The University of Chicago, as Operator of Argonne * National Laboratory. * Copyright (c) 2002 The Regents of the University of California, as * Operator of Los Alamos National Laboratory. * This file is distributed subject to a Software License Agreement found * in the file LICENSE that is included with this distribution. \*************************************************************************/ package SDDS.java.SDDSedit; import javax.swing.*; import java.beans.*; import java.awt.*; import java.awt.event.*; import java.lang.reflect.*; import java.lang.*; import SDDS.java.SDDS.*; class MatchList extends JFrame { private String[] elements = null; private JOptionPane optionPane; private JLabel label; private JList list; private JPanel panel1=null; private GridBagLayout gbl=null; private GridBagConstraints gbc=null; private int listCount=0; public void setElements(String[] ele) { if (ele != null) { int i; listCount = Array.getLength(ele); if (elements == null) elements = new String[listCount]; else elements = (String[])SDDSUtil.resize(elements, listCount); for (i=0;i= 0 ; i-- ) { indexStart = ((String)selectedValues[i]).lastIndexOf('@'); indexEnd = ((String)selectedValues[i]).lastIndexOf(','); row = Integer.valueOf(((String)selectedValues[i]).substring(indexStart+1,indexEnd)).intValue() - 1; sddsEdit.deleteColumnRow(row); } if (length > 0) { //setVisible(false); sddsEdit.autoSearch(); } } } } }); } }