Search in sources :

Example 1 with ActionBruteForce

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;
}
Also used : JButtonStateful(com.jsql.view.swing.manager.util.JButtonStateful) JPanel(javax.swing.JPanel) ActionBruteForce(com.jsql.view.swing.manager.util.ActionBruteForce) BoxLayout(javax.swing.BoxLayout) Color(java.awt.Color) FlatButtonMouseAdapter(com.jsql.view.swing.ui.FlatButtonMouseAdapter) JLabel(javax.swing.JLabel) Dimension(java.awt.Dimension)

Aggregations

ActionBruteForce (com.jsql.view.swing.manager.util.ActionBruteForce)1 JButtonStateful (com.jsql.view.swing.manager.util.JButtonStateful)1 FlatButtonMouseAdapter (com.jsql.view.swing.ui.FlatButtonMouseAdapter)1 Color (java.awt.Color)1 Dimension (java.awt.Dimension)1 BoxLayout (javax.swing.BoxLayout)1 JLabel (javax.swing.JLabel)1 JPanel (javax.swing.JPanel)1