Search in sources :

Example 76 with JButton

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

the class MainFrame method getShowAllTabsButton.

private JButton getShowAllTabsButton() {
    if (showAllTabsButton == null) {
        showAllTabsButton = new JButton();
        showAllTabsButton.setIcon(new ImageIcon(WorkbenchPanel.class.getResource("/resource/icon/fugue/ui-tab-show.png")));
        showAllTabsButton.setToolTipText(Constant.messages.getString("menu.view.tabs.show"));
        DisplayUtils.scaleIcon(showAllTabsButton);
        showAllTabsButton.addActionListener(new java.awt.event.ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                View.getSingleton().showAllTabs();
            }
        });
    }
    return showAllTabsButton;
}
Also used : ImageIcon(javax.swing.ImageIcon) ActionEvent(java.awt.event.ActionEvent) JButton(javax.swing.JButton)

Example 77 with JButton

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

the class AbstractParamDialog method getBtnCancel.

/**
     * This method initializes btnCancel
     *
     * @return javax.swing.JButton
     */
protected JButton getBtnCancel() {
    if (btnCancel == null) {
        btnCancel = new JButton();
        btnCancel.setName("btnCancel");
        btnCancel.setText(Constant.messages.getString("all.button.cancel"));
        btnCancel.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                exitResult = JOptionPane.CANCEL_OPTION;
                AbstractParamDialog.this.setVisible(false);
            }
        });
    }
    return btnCancel;
}
Also used : ActionListener(java.awt.event.ActionListener) ActionEvent(java.awt.event.ActionEvent) JButton(javax.swing.JButton)

Example 78 with JButton

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

the class BrowserDialog method getBtnCapture.

/**
	 * This method initializes jButton	
	 * 	
	 * @return javax.swing.JButton	
	 */
private JButton getBtnCapture() {
    if (btnCapture == null) {
        btnCapture = new JButton();
        btnCapture.setText("Capture");
        btnCapture.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        btnCapture.setHorizontalTextPosition(javax.swing.SwingConstants.TRAILING);
        //			btnCapture.setPreferredSize(new java.awt.Dimension(73,28));
        btnCapture.addActionListener(new java.awt.event.ActionListener() {

            @Override
            public void actionPerformed(java.awt.event.ActionEvent e) {
                capture();
            }
        });
    }
    return btnCapture;
}
Also used : ActionListener(java.awt.event.ActionListener) JButton(javax.swing.JButton) ActionEvent(java.awt.event.ActionEvent)

Example 79 with JButton

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

the class BrowserDialog method getBtnStop.

private JButton getBtnStop() {
    if (btnStop == null) {
        btnStop = new JButton();
        btnStop.setText("Stop");
        btnStop.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        btnStop.setHorizontalTextPosition(javax.swing.SwingConstants.TRAILING);
        //			btnStop.setPreferredSize(new java.awt.Dimension(73,28));
        btnStop.addActionListener(new java.awt.event.ActionListener() {

            @Override
            public void actionPerformed(java.awt.event.ActionEvent e) {
                /*
					int i=0;
					for (i=0;i<URLs.size();i++){
						System.out.println(URLs.get(i));
					}
					*/
                URLs.clear();
                stop();
            }
        });
    }
    return btnStop;
}
Also used : ActionListener(java.awt.event.ActionListener) JButton(javax.swing.JButton) ActionEvent(java.awt.event.ActionEvent)

Example 80 with JButton

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

the class LogPanel method getFilterButton.

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

            @Override
            public void actionPerformed(java.awt.event.ActionEvent e) {
                extension.showFilterPlusDialog();
            }
        });
    }
    return filterButton;
}
Also used : ImageIcon(javax.swing.ImageIcon) 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