auto fill array for testing purposes
This commit is contained in:
parent
223c051ac6
commit
0327a93cb3
1 changed files with 7 additions and 6 deletions
|
|
@ -28,17 +28,18 @@ public class MainFrame {
|
||||||
vsp.setContinuousLayout(true);
|
vsp.setContinuousLayout(true);
|
||||||
frame.add(vsp);
|
frame.add(vsp);
|
||||||
|
|
||||||
categoryList = new JList<String>(new String[] {
|
String[] items = new String[128];
|
||||||
"category1","category2","category3","category4","category5","category6","category7","category8",
|
for (int i = 0; i < 128; i++) {
|
||||||
});
|
items[i] = "item" + i;
|
||||||
|
}
|
||||||
|
|
||||||
|
categoryList = new JList<String>(items);
|
||||||
categoryList.setFont(font);
|
categoryList.setFont(font);
|
||||||
categoryPanel.add(categoryList, BorderLayout.CENTER);
|
categoryPanel.add(categoryList, BorderLayout.CENTER);
|
||||||
|
|
||||||
statusPanel.add(new JButton("status"));
|
statusPanel.add(new JButton("status"));
|
||||||
|
|
||||||
channelList = new JList<String>(new String[] {
|
channelList = new JList<String>(items);
|
||||||
"channel1","channel2","channel3","channel4","channel5","channel6","channel7","channel8",
|
|
||||||
});;
|
|
||||||
channelList.setFont(font);
|
channelList.setFont(font);
|
||||||
channelPanel.add(channelList, BorderLayout.CENTER);
|
channelPanel.add(channelList, BorderLayout.CENTER);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue