JList docList = new JList();
docScrollPane.setViewportView(docList);
docList.setName("doc-lb");
//docList.setModel(new DefaultComboBoxModel(new String[] {"All", "Doc", "Examples", "See alsos", "Comments", "Source", "Value"}));
docList.setModel(new AbstractListModel() {
String[] values = new String[] {"Doc", "Source", "Examples", "Comments", "See alsos", "Value"};
public int getSize() {
return values.length;
}
public Object getElementAt(int index) {
return values[index];
}
});
docList.setLayoutOrientation(JList.HORIZONTAL_WRAP);
docList.setVisibleRowCount(-1);
txtNsFilter = new JTextField();
txtNsFilter.setName("ns-filter-tf");
txtNsFilter.setFont(new Font("Monospaced", Font.PLAIN, 13));
add(txtNsFilter, "cell 0 2 3 1,growx");
txtNsFilter.setColumns(10);
txtVarsFilter = new JTextField();
txtVarsFilter.setName("vars-filter-tf");
txtVarsFilter.setFont(new Font("Monospaced", Font.PLAIN, 13));
add(txtVarsFilter, "cell 3 2 2 1,growx");
txtVarsFilter.setColumns(10);
txtClojurecoremap = new JTextField();
txtClojurecoremap.setFont(new Font("Monospaced", Font.BOLD, 15));
txtClojurecoremap.setName("doc-tf");
txtClojurecoremap.setEditable(false);
txtClojurecoremap.setText("clojure.core/map");
add(txtClojurecoremap, "cell 5 2 2 1,growx");
txtClojurecoremap.setColumns(10);
JScrollPane scrollPane = new JScrollPane();
scrollPane.setName("ns-lb-sp");
add(scrollPane, "cell 0 3 3 1,grow");
JList list = new JList();
scrollPane.setViewportView(list);
list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
list.setName("ns-lb");
list.setFont(new Font("Monospaced", Font.PLAIN, 13));
list.setModel(new AbstractListModel() {
String[] values = new String[] {"clojure.core", "clj.growlnitify.core", "123456789012345678901234567890123456"};
public int getSize() {
return values.length;
}
public Object getElementAt(int index) {
return values[index];
}
});
JScrollPane scrollPane_1 = new JScrollPane();
scrollPane_1.setName("vars-lb-sp");
add(scrollPane_1, "cell 3 3 2 1,grow");
JList list_1 = new JList();
list_1.setFont(new Font("Monospaced", Font.PLAIN, 13));
list_1.setModel(new AbstractListModel() {
String[] values = new String[] {"123456789012345678901234567890123456", "2", "3", "4", "5", "6", "7", "8", "9", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"};
public int getSize() {
return values.length;
}
public Object getElementAt(int index) {