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