use of javax.swing.JButton in project zaproxy by zaproxy.
the class MainFrame method getShowAllTabsButton.
private JButton getShowAllTabsButton() {
if (showAllTabsButton == null) {
showAllTabsButton = new JButton();
showAllTabsButton.setIcon(new ImageIcon(WorkbenchPanel.class.getResource("/resource/icon/fugue/ui-tab-show.png")));
showAllTabsButton.setToolTipText(Constant.messages.getString("menu.view.tabs.show"));
DisplayUtils.scaleIcon(showAllTabsButton);
showAllTabsButton.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
View.getSingleton().showAllTabs();
}
});
}
return showAllTabsButton;
}
use of javax.swing.JButton in project zaproxy by zaproxy.
the class AbstractParamDialog method getBtnCancel.
/**
* This method initializes btnCancel
*
* @return javax.swing.JButton
*/
protected JButton getBtnCancel() {
if (btnCancel == null) {
btnCancel = new JButton();
btnCancel.setName("btnCancel");
btnCancel.setText(Constant.messages.getString("all.button.cancel"));
btnCancel.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
exitResult = JOptionPane.CANCEL_OPTION;
AbstractParamDialog.this.setVisible(false);
}
});
}
return btnCancel;
}
use of javax.swing.JButton in project zaproxy by zaproxy.
the class BrowserDialog method getBtnCapture.
/**
* This method initializes jButton
*
* @return javax.swing.JButton
*/
private JButton getBtnCapture() {
if (btnCapture == null) {
btnCapture = new JButton();
btnCapture.setText("Capture");
btnCapture.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
btnCapture.setHorizontalTextPosition(javax.swing.SwingConstants.TRAILING);
// btnCapture.setPreferredSize(new java.awt.Dimension(73,28));
btnCapture.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
capture();
}
});
}
return btnCapture;
}
use of javax.swing.JButton in project zaproxy by zaproxy.
the class BrowserDialog method getBtnStop.
private JButton getBtnStop() {
if (btnStop == null) {
btnStop = new JButton();
btnStop.setText("Stop");
btnStop.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
btnStop.setHorizontalTextPosition(javax.swing.SwingConstants.TRAILING);
// btnStop.setPreferredSize(new java.awt.Dimension(73,28));
btnStop.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
/*
int i=0;
for (i=0;i<URLs.size();i++){
System.out.println(URLs.get(i));
}
*/
URLs.clear();
stop();
}
});
}
return btnStop;
}
use of javax.swing.JButton in project zaproxy by zaproxy.
the class LogPanel method getFilterButton.
private JButton getFilterButton() {
if (filterButton == null) {
filterButton = new JButton();
// ZAP: Changed to use the class literal.
// 'filter' icon
filterButton.setIcon(new ImageIcon(LogPanel.class.getResource("/resource/icon/16/054.png")));
filterButton.setToolTipText(Constant.messages.getString("history.filter.button.filter"));
DisplayUtils.scaleIcon(filterButton);
filterButton.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
extension.showFilterPlusDialog();
}
});
}
return filterButton;
}
Aggregations