Search in sources :

Example 71 with JButton

use of javax.swing.JButton in project zaproxy by zaproxy.

the class SiteMapPanel method getImportContextButton.

private JButton getImportContextButton() {
    if (importContextButton == null) {
        importContextButton = new JButton();
        importContextButton.setIcon(DisplayUtils.getScaledIcon(new ImageIcon(LogPanel.class.getResource("/resource/icon/fugue/application-blue-import.png"))));
        importContextButton.setToolTipText(Constant.messages.getString("menu.file.context.import"));
        importContextButton.addActionListener(new java.awt.event.ActionListener() {

            @Override
            public void actionPerformed(java.awt.event.ActionEvent e) {
                Control.getSingleton().getMenuFileControl().importContext();
            }
        });
    }
    return importContextButton;
}
Also used : ImageIcon(javax.swing.ImageIcon) LogPanel(org.parosproxy.paros.extension.history.LogPanel) JButton(javax.swing.JButton)

Example 72 with JButton

use of javax.swing.JButton in project zaproxy by zaproxy.

the class SiteMapPanel method getFilterButton.

private JButton getFilterButton() {
    if (filterButton == null) {
        filterButton = new JButton();
        filterButton.setIcon(DisplayUtils.getScaledIcon(// 'filter' icon
        new ImageIcon(LogPanel.class.getResource("/resource/icon/16/054.png"))));
        filterButton.setToolTipText(Constant.messages.getString("history.filter.button.filter"));
        filterButton.addActionListener(new java.awt.event.ActionListener() {

            @Override
            public void actionPerformed(java.awt.event.ActionEvent e) {
                showFilterPlusDialog();
            }
        });
    }
    return filterButton;
}
Also used : ImageIcon(javax.swing.ImageIcon) LogPanel(org.parosproxy.paros.extension.history.LogPanel) JButton(javax.swing.JButton)

Example 73 with JButton

use of javax.swing.JButton in project zaproxy by zaproxy.

the class SiteMapPanel method getExportContextButton.

private JButton getExportContextButton() {
    if (exportContextButton == null) {
        exportContextButton = new JButton();
        exportContextButton.setIcon(DisplayUtils.getScaledIcon(new ImageIcon(LogPanel.class.getResource("/resource/icon/fugue/application-blue-export.png"))));
        exportContextButton.setToolTipText(Constant.messages.getString("menu.file.context.export"));
        exportContextButton.addActionListener(new java.awt.event.ActionListener() {

            @Override
            public void actionPerformed(java.awt.event.ActionEvent e) {
                Control.getSingleton().getMenuFileControl().exportContext();
            }
        });
    }
    return exportContextButton;
}
Also used : ImageIcon(javax.swing.ImageIcon) LogPanel(org.parosproxy.paros.extension.history.LogPanel) JButton(javax.swing.JButton)

Example 74 with JButton

use of javax.swing.JButton 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 75 with JButton

use of javax.swing.JButton in project zaproxy by zaproxy.

the class LicenseFrame method getBtnAccept.

/**
	 * This method initializes btnAccept
	 *
	 * @return javax.swing.JButton
	 */
private JButton getBtnAccept() {
    if (btnAccept == null) {
        btnAccept = new JButton();
        btnAccept.setText("Accept");
        btnAccept.addActionListener(new java.awt.event.ActionListener() {

            @Override
            public void actionPerformed(java.awt.event.ActionEvent e) {
                accepted = true;
                LicenseFrame.this.dispose();
            }
        });
    }
    return btnAccept;
}
Also used : JButton(javax.swing.JButton)

Aggregations

JButton (javax.swing.JButton)923 JPanel (javax.swing.JPanel)408 ActionEvent (java.awt.event.ActionEvent)389 ActionListener (java.awt.event.ActionListener)317 JLabel (javax.swing.JLabel)278 JScrollPane (javax.swing.JScrollPane)166 BoxLayout (javax.swing.BoxLayout)158 FlowLayout (java.awt.FlowLayout)142 BorderLayout (java.awt.BorderLayout)138 Dimension (java.awt.Dimension)138 Insets (java.awt.Insets)114 JTextField (javax.swing.JTextField)114 GridBagLayout (java.awt.GridBagLayout)110 JCheckBox (javax.swing.JCheckBox)103 GridBagConstraints (java.awt.GridBagConstraints)95 ImageIcon (javax.swing.ImageIcon)95 JTable (javax.swing.JTable)67 JDialog (javax.swing.JDialog)65 JComboBox (javax.swing.JComboBox)56 JTextArea (javax.swing.JTextArea)56