Search in sources :

Example 1 with ContextCreateDialog

use of org.zaproxy.zap.view.ContextCreateDialog in project zaproxy by zaproxy.

the class SiteMapPanel method getCreateContextButton.

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

            @Override
            public void actionPerformed(java.awt.event.ActionEvent e) {
                ContextCreateDialog ccd = new ContextCreateDialog(View.getSingleton().getMainFrame());
                ccd.setVisible(true);
            }
        });
    }
    return createContextButton;
}
Also used : ImageIcon(javax.swing.ImageIcon) LogPanel(org.parosproxy.paros.extension.history.LogPanel) JButton(javax.swing.JButton) ContextCreateDialog(org.zaproxy.zap.view.ContextCreateDialog)

Aggregations

ImageIcon (javax.swing.ImageIcon)1 JButton (javax.swing.JButton)1 LogPanel (org.parosproxy.paros.extension.history.LogPanel)1 ContextCreateDialog (org.zaproxy.zap.view.ContextCreateDialog)1