use of javax.swing.JToolBar in project zaproxy by zaproxy.
the class AbstractContextSelectToolbarStatusPanel method getPanelToolbar.
private JToolBar getPanelToolbar() {
if (panelToolbar == null) {
panelToolbar = new javax.swing.JToolBar();
panelToolbar.setLayout(new GridBagLayout());
panelToolbar.setEnabled(true);
panelToolbar.setFloatable(false);
panelToolbar.setRollover(true);
panelToolbar.setPreferredSize(new java.awt.Dimension(800, 30));
panelToolbar.setName(panelPrefix + ".toolbar");
setupToolbarElements(panelToolbar);
}
return panelToolbar;
}
use of javax.swing.JToolBar in project zaproxy by zaproxy.
the class OutputPanel method getToolBar.
private JToolBar getToolBar() {
if (mainToolBar == null) {
mainToolBar = new JToolBar();
mainToolBar.setEnabled(true);
mainToolBar.setFloatable(false);
mainToolBar.setRollover(true);
JButton clearButton = new JButton(CLEAR_BUTTON_LABEL);
clearButton.setToolTipText(CLEAR_BUTTON_TOOL_TIP);
clearButton.setIcon(DisplayUtils.getScaledIcon(new ImageIcon(OutputPanel.class.getResource("/resource/icon/fugue/broom.png"))));
clearButton.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
getTxtOutput().setText("");
}
});
mainToolBar.add(clearButton);
}
return mainToolBar;
}
use of javax.swing.JToolBar in project zaproxy by zaproxy.
the class MainFooterPanel method getToolbarRight.
// Right toolbar for current scan results
private JToolBar getToolbarRight() {
if (footerToolbarRight == null) {
footerToolbarRight = new JToolBar();
footerToolbarRight.setEnabled(true);
footerToolbarRight.setFloatable(false);
footerToolbarRight.setRollover(true);
footerToolbarRight.setName("Footer Toolbar Right");
footerToolbarRight.setBorder(BorderFactory.createEmptyBorder());
}
return footerToolbarRight;
}
use of javax.swing.JToolBar in project zaproxy by zaproxy.
the class MainFooterPanel method getToolbarLeft.
// Left toolbar for alerts
private JToolBar getToolbarLeft() {
if (footerToolbarLeft == null) {
footerToolbarLeft = new JToolBar();
footerToolbarLeft.setEnabled(true);
footerToolbarLeft.setFloatable(false);
footerToolbarLeft.setRollover(true);
footerToolbarLeft.setName("Footer Toolbar Left");
footerToolbarLeft.setBorder(BorderFactory.createEmptyBorder());
}
return footerToolbarLeft;
}
use of javax.swing.JToolBar in project zaproxy by zaproxy.
the class CallbackPanel method getToolBar.
private JToolBar getToolBar() {
if (mainToolBar == null) {
mainToolBar = new JToolBar();
mainToolBar.setEnabled(true);
mainToolBar.setFloatable(false);
mainToolBar.setRollover(true);
mainToolBar.setName("Callback Toolbar");
mainToolBar.add(getClearButton());
mainToolBar.add(Box.createHorizontalGlue());
mainToolBar.add(getOptionsButton());
}
return mainToolBar;
}
Aggregations