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;
}
Aggregations