use of org.knime.core.node.util.DataColumnSpecListCellRenderer in project knime-core by knime.
the class ColumnResorterNodeDialog method createListBox.
private Box createListBox() {
// List for the columns
Box listBox = Box.createVerticalBox();
listBox.setBorder(new TitledBorder("Columns"));
m_model = new DefaultListModel();
m_columnList = new JList(m_model);
m_columnList.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
m_columnList.setCellRenderer(new DataColumnSpecListCellRenderer());
m_columnList.setBorder(new EtchedBorder());
JScrollPane scrollPane = new JScrollPane(m_columnList);
listBox.add(scrollPane);
return listBox;
}
Aggregations