use of delta.common.ui.swing.tables.TableColumnsChooserController in project lotro-companion by dmorcellet.
the class ItemChoicePanelController method build.
private JPanel build() {
JPanel panel = GuiFactory.buildPanel(new BorderLayout());
TitledBorder itemsFrameBorder = GuiFactory.buildTitledBorder("Items");
panel.setBorder(itemsFrameBorder);
// Table
JTable table = _tableController.getTable();
JScrollPane scroll = GuiFactory.buildScrollPane(table);
panel.add(scroll, BorderLayout.CENTER);
// Stats
JPanel statsPanel = GuiFactory.buildPanel(new FlowLayout(FlowLayout.LEFT));
_statsLabel = GuiFactory.buildLabel("-");
statsPanel.add(_statsLabel);
JButton choose = GuiFactory.buildButton("Choose columns...");
ActionListener al = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
TableColumnsChooserController<Item> chooser = new TableColumnsChooserController<Item>(_parent, _tableController.getTableController());
chooser.editModal();
}
};
choose.addActionListener(al);
statsPanel.add(choose);
panel.add(statsPanel, BorderLayout.NORTH);
return panel;
}
use of delta.common.ui.swing.tables.TableColumnsChooserController in project lotro-companion by dmorcellet.
the class DeedExplorerPanelController method build.
private JPanel build() {
JPanel panel = GuiFactory.buildPanel(new BorderLayout());
TitledBorder itemsFrameBorder = GuiFactory.buildTitledBorder("Items");
panel.setBorder(itemsFrameBorder);
// Table
JTable table = _tableController.getTable();
JScrollPane scroll = GuiFactory.buildScrollPane(table);
panel.add(scroll, BorderLayout.CENTER);
// Stats
JPanel statsPanel = GuiFactory.buildPanel(new FlowLayout(FlowLayout.LEFT));
_statsLabel = GuiFactory.buildLabel("-");
statsPanel.add(_statsLabel);
JButton choose = GuiFactory.buildButton("Choose columns...");
ActionListener al = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
TableColumnsChooserController<DeedDescription> chooser = new TableColumnsChooserController<DeedDescription>(_parent, _tableController.getTableController());
chooser.editModal();
}
};
choose.addActionListener(al);
statsPanel.add(choose);
panel.add(statsPanel, BorderLayout.NORTH);
return panel;
}
Aggregations