use of com.jsql.view.swing.manager.util.ActionBruteForce in project jsql-injection by ron190.
the class ManagerBruteForce method initializePanelButton.
private JPanel initializePanelButton() {
var lastLine = new JPanel();
lastLine.setOpaque(false);
lastLine.setLayout(new BoxLayout(lastLine, BoxLayout.X_AXIS));
lastLine.setPreferredSize(new Dimension(0, 26));
lastLine.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(0, 0, 0, 0, UiUtil.COLOR_COMPONENT_BORDER), BorderFactory.createEmptyBorder(1, 0, 1, 1)));
this.run = new JButtonStateful("BRUTEFORCE_RUN_BUTTON_LABEL");
I18nViewUtil.addComponentForKey("BRUTEFORCE_RUN_BUTTON_LABEL", this.run);
this.run.setToolTipText(I18nUtil.valueByKey("BRUTEFORCE_RUN_BUTTON_TOOLTIP"));
this.run.setName("managerBruterRun");
this.run.setContentAreaFilled(false);
this.run.setBorder(BorderFactory.createEmptyBorder(4, 8, 4, 8));
this.run.setBackground(new Color(200, 221, 242));
this.run.addMouseListener(new FlatButtonMouseAdapter(this.run));
this.run.addActionListener(new ActionBruteForce(this));
this.loader = new JLabel(UiUtil.ICON_LOADER_GIF);
this.loader.setVisible(false);
lastLine.add(Box.createHorizontalGlue());
lastLine.add(this.loader);
lastLine.add(Box.createRigidArea(new Dimension(5, 0)));
lastLine.add(this.run);
return lastLine;
}
Aggregations