use of javax.swing.JButton 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.JButton 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.JButton 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.JButton 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;
}
use of javax.swing.JButton in project zaproxy by zaproxy.
the class LicenseFrame method getBtnAccept.
/**
* This method initializes btnAccept
*
* @return javax.swing.JButton
*/
private JButton getBtnAccept() {
if (btnAccept == null) {
btnAccept = new JButton();
btnAccept.setText("Accept");
btnAccept.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
accepted = true;
LicenseFrame.this.dispose();
}
});
}
return btnAccept;
}
Aggregations