use of javax.swing.JToolBar in project ffx by mjschnie.
the class LogPanel method initToolBar.
private void initToolBar() {
toolBar = new JToolBar("Results");
toolBar.setLayout(new FlowLayout(FlowLayout.LEFT));
JButton jbrefresh = new JButton(new ImageIcon(getClass().getClassLoader().getResource("ffx/ui/icons/page_refresh.png")));
jbrefresh.setActionCommand("Refresh");
jbrefresh.setToolTipText("Refresh the Logs Panel");
jbrefresh.addActionListener(this);
Insets insets = jbrefresh.getInsets();
insets.top = 2;
insets.bottom = 2;
insets.left = 2;
insets.right = 2;
jbrefresh.setMargin(insets);
toolBar.add(jbrefresh);
toolBar.addSeparator();
JButton jbopen = new JButton(new ImageIcon(getClass().getClassLoader().getResource("ffx/ui/icons/page_open.png")));
jbopen.setActionCommand("Open...");
jbopen.setToolTipText("Open any Text File");
jbopen.addActionListener(this);
jbopen.setMargin(insets);
toolBar.add(jbopen);
JButton jbsave = new JButton(new ImageIcon(getClass().getClassLoader().getResource("ffx/ui/icons/disk.png")));
jbsave.setActionCommand("Save");
jbsave.setToolTipText("Save the Active File");
jbsave.addActionListener(this);
jbsave.setMargin(insets);
toolBar.add(jbsave);
JButton jbsaveas = new JButton(new ImageIcon(getClass().getClassLoader().getResource("ffx/ui/icons/page_save.png")));
jbsaveas.setActionCommand("Save As...");
jbsaveas.setToolTipText("Save the Active Text File Under a New Name");
jbsaveas.addActionListener(this);
jbsaveas.setMargin(insets);
toolBar.add(jbsaveas);
JButton jbclose = new JButton(new ImageIcon(getClass().getClassLoader().getResource("ffx/ui/icons/cancel.png")));
jbclose.setActionCommand("Close");
jbclose.setToolTipText("Close the Active Text File");
jbclose.addActionListener(this);
jbclose.setMargin(insets);
toolBar.add(jbclose);
JButton jbcloseall = new JButton(new ImageIcon(getClass().getClassLoader().getResource("ffx/ui/icons/stop.png")));
jbcloseall.setActionCommand("Close All");
jbcloseall.setToolTipText("Close All Open Text Files");
jbcloseall.addActionListener(this);
jbcloseall.setMargin(insets);
toolBar.add(jbcloseall);
toolBar.setFloatable(false);
toolBar.setRollover(true);
toolBar.setOrientation(JToolBar.HORIZONTAL);
}
use of javax.swing.JToolBar in project lotro-companion by dmorcellet.
the class MainFrameController method buildContents.
@Override
protected JComponent buildContents() {
JPanel ret = GuiFactory.buildPanel(new BorderLayout());
_toolbar = buildToolBar();
JToolBar toolbar = _toolbar.getToolBar();
ret.add(toolbar, BorderLayout.NORTH);
JTabbedPane tabbedPane = GuiFactory.buildTabbedPane();
// Characters
JPanel toonsPanel = _toonsManager.getPanel();
tabbedPane.add("Characters", toonsPanel);
// Accounts
JPanel accountsPanel = _accountsManager.getPanel();
tabbedPane.add("Accounts", accountsPanel);
// Deeds
JPanel deedsPanel = _deedsManager.getPanel();
tabbedPane.add("Deeds", deedsPanel);
ret.add(tabbedPane, BorderLayout.CENTER);
return ret;
}
use of javax.swing.JToolBar in project lotro-companion by dmorcellet.
the class ToonsManagementController method buildPanel.
private JPanel buildPanel() {
JPanel ret = GuiFactory.buildBackgroundPanel(new BorderLayout());
_toolbar = buildToolBar();
JToolBar toolbar = _toolbar.getToolBar();
ret.add(toolbar, BorderLayout.NORTH);
_toonsTable = buildToonsTable();
JTable table = _toonsTable.getTable();
JScrollPane scroll = GuiFactory.buildScrollPane(table);
ret.add(scroll, BorderLayout.CENTER);
return ret;
}
use of javax.swing.JToolBar in project lotro-companion by dmorcellet.
the class CharacterFileWindowController method buildTablePanel.
private JPanel buildTablePanel() {
JPanel ret = GuiFactory.buildBackgroundPanel(new BorderLayout());
_toolbar = buildToolBar();
JToolBar toolbar = _toolbar.getToolBar();
ret.add(toolbar, BorderLayout.NORTH);
_toonsTable = buildToonsTable();
JTable table = _toonsTable.getTable();
JScrollPane scroll = GuiFactory.buildScrollPane(table);
ret.add(scroll, BorderLayout.CENTER);
return ret;
}
use of javax.swing.JToolBar in project lotro-companion by dmorcellet.
the class DeedsManagementController method buildPanel.
private JPanel buildPanel() {
JPanel ret = GuiFactory.buildBackgroundPanel(new BorderLayout());
_toolbar = buildToolBar();
JToolBar toolbar = _toolbar.getToolBar();
ret.add(toolbar, BorderLayout.NORTH);
_deedsTable = buildDeedsTable();
JTable table = _deedsTable.getTable();
JScrollPane scroll = GuiFactory.buildScrollPane(table);
ret.add(scroll, BorderLayout.CENTER);
return ret;
}
Aggregations