Search in sources :

Example 51 with JToolBar

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;
}
Also used : JToolBar(javax.swing.JToolBar) GridBagLayout(java.awt.GridBagLayout)

Example 52 with JToolBar

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;
}
Also used : ImageIcon(javax.swing.ImageIcon) JButton(javax.swing.JButton) JToolBar(javax.swing.JToolBar)

Example 53 with JToolBar

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;
}
Also used : JToolBar(javax.swing.JToolBar)

Example 54 with JToolBar

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;
}
Also used : JToolBar(javax.swing.JToolBar)

Example 55 with JToolBar

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;
}
Also used : JToolBar(javax.swing.JToolBar)

Aggregations

JToolBar (javax.swing.JToolBar)124 JButton (javax.swing.JButton)51 BorderLayout (java.awt.BorderLayout)45 JPanel (javax.swing.JPanel)37 JScrollPane (javax.swing.JScrollPane)30 Dimension (java.awt.Dimension)25 Insets (java.awt.Insets)25 ActionEvent (java.awt.event.ActionEvent)24 JLabel (javax.swing.JLabel)23 ActionListener (java.awt.event.ActionListener)19 ImageIcon (javax.swing.ImageIcon)17 Component (java.awt.Component)14 JSplitPane (javax.swing.JSplitPane)14 JTable (javax.swing.JTable)14 JTextField (javax.swing.JTextField)14 JPopupMenu (javax.swing.JPopupMenu)13 JToggleButton (javax.swing.JToggleButton)12 GridBagConstraints (java.awt.GridBagConstraints)10 GridBagLayout (java.awt.GridBagLayout)10 JComponent (javax.swing.JComponent)10