Search in sources :

Example 26 with ImageIcon

use of javax.swing.ImageIcon 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 27 with ImageIcon

use of javax.swing.ImageIcon 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 28 with ImageIcon

use of javax.swing.ImageIcon 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 29 with ImageIcon

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

the class OutputPanel method initialize.

/**
	 * This method initializes this
	 */
private void initialize() {
    this.setLayout(new BorderLayout());
    // ZAP: i18n
    this.setName(Constant.messages.getString("output.panel.title"));
    if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) {
        this.setSize(243, 119);
    }
    // ZAP: Added Output (doc) icon
    // 'doc' icon
    this.setIcon(new ImageIcon(OutputPanel.class.getResource("/resource/icon/16/172.png")));
    this.setDefaultAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() | Event.SHIFT_MASK, false));
    this.setMnemonic(Constant.messages.getChar("output.panel.mnemonic"));
    this.add(getMainPanel(), BorderLayout.CENTER);
    this.setShowByDefault(true);
}
Also used : ImageIcon(javax.swing.ImageIcon) BorderLayout(java.awt.BorderLayout)

Example 30 with ImageIcon

use of javax.swing.ImageIcon 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)

Aggregations

ImageIcon (javax.swing.ImageIcon)427 JButton (javax.swing.JButton)109 ActionEvent (java.awt.event.ActionEvent)83 ActionListener (java.awt.event.ActionListener)70 JLabel (javax.swing.JLabel)67 Dimension (java.awt.Dimension)62 BufferedImage (java.awt.image.BufferedImage)51 JPanel (javax.swing.JPanel)48 Insets (java.awt.Insets)42 Image (java.awt.Image)31 BorderLayout (java.awt.BorderLayout)28 IOException (java.io.IOException)28 URL (java.net.URL)26 GridBagLayout (java.awt.GridBagLayout)23 JMenuItem (javax.swing.JMenuItem)23 Color (java.awt.Color)21 Point (java.awt.Point)21 LogTypeHelper (com.cosylab.logging.engine.log.LogTypeHelper)20 JToggleButton (javax.swing.JToggleButton)20 JScrollPane (javax.swing.JScrollPane)19