Revision 2360 branches/CqCMSDvp/libraries/libCq CMS for java.old/src/org/cresques/ui/raster/FileList.java

View differences:

FileList.java
32 32
import javax.swing.JPanel;
33 33
import javax.swing.JScrollPane;
34 34

  
35
import javax.swing.JComboBox;
35 36
public class FileList extends JPanel {
36 37

  
37 38
	private JScrollPane jScrollPane = null;
......
42 43
	private Vector fileNames = null;
43 44
	private JList jList = null;
44 45
	private JPanel jPanel1 = null;
46
	private JComboBox jComboBox = null;
45 47
	/**
46 48
	 * This method initializes jScrollPane	
47 49
	 * 	
......
134 136
			jPanel1.setPreferredSize(new java.awt.Dimension(86,180));
135 137
			jPanel1.add(getJButton2(), null);
136 138
			jPanel1.add(getJButton3(), null);
139
			jPanel1.add(getJComboBox(), null);
137 140
		}
138 141
		return jPanel1;
139 142
	}
......
171 174
	public int getNFiles(){
172 175
		return fileNames.size();
173 176
	}
174
}  //  @jve:decl-index=0:visual-constraint="10,10"
177
	/**
178
	 * This method initializes jComboBox	
179
	 * 	
180
	 * @return javax.swing.JComboBox	
181
	 */    
182
	public JComboBox getJComboBox() {
183
		if (jComboBox == null) {
184
			String[] list={"BANDAS", "1", "2", "3"};
185
			jComboBox = new JComboBox(list);
186
		}
187
		return jComboBox;
188
	}
189
 }  //  @jve:decl-index=0:visual-constraint="10,10"

Also available in: Unified diff