Search in sources :

Example 46 with ActionEvent

use of java.awt.event.ActionEvent in project android-classyshark by google.

the class Toolbar method buildSettingsButton.

private JButton buildSettingsButton() {
    JButton button = new JButton(theme.getSettingsIcon());
    button.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            toolbarController.onSettingsButtonPressed();
        }
    });
    button.setToolTipText("Settings");
    button.setBorderPainted(false);
    return button;
}
Also used : ActionListener(java.awt.event.ActionListener) ActionEvent(java.awt.event.ActionEvent) JButton(javax.swing.JButton)

Example 47 with ActionEvent

use of java.awt.event.ActionEvent in project android-classyshark by google.

the class Toolbar method buildExportButton.

private JButton buildExportButton() {
    JButton result = new JButton(theme.getExportIcon());
    result.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            toolbarController.onExportButtonPressed();
        }
    });
    result.setToolTipText("Export");
    result.setBorderPainted(false);
    result.setEnabled(false);
    return result;
}
Also used : ActionListener(java.awt.event.ActionListener) ActionEvent(java.awt.event.ActionEvent) JButton(javax.swing.JButton)

Example 48 with ActionEvent

use of java.awt.event.ActionEvent in project android-classyshark by google.

the class Toolbar method buildViewButton.

private JButton buildViewButton() {
    JButton result = new JButton(theme.getForwardIcon());
    result.setToolTipText("Next");
    result.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            toolbarController.onViewTopClassPressed();
        }
    });
    result.setBorderPainted(false);
    result.setFocusPainted(true);
    result.setEnabled(false);
    return result;
}
Also used : ActionListener(java.awt.event.ActionListener) ActionEvent(java.awt.event.ActionEvent) JButton(javax.swing.JButton)

Example 49 with ActionEvent

use of java.awt.event.ActionEvent in project android-classyshark by google.

the class Toolbar method buildLeftPanelToggleButton.

private JToggleButton buildLeftPanelToggleButton() {
    final ImageIcon toggleIcon = theme.getToggleIcon();
    final JToggleButton jToggleButton = new JToggleButton(toggleIcon, true);
    jToggleButton.setToolTipText("Show/hide navigation tree");
    jToggleButton.setBorderPainted(false);
    jToggleButton.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            toolbarController.onChangeLeftPaneVisibility(jToggleButton.isSelected());
        }
    });
    return jToggleButton;
}
Also used : ImageIcon(javax.swing.ImageIcon) JToggleButton(javax.swing.JToggleButton) ActionListener(java.awt.event.ActionListener) ActionEvent(java.awt.event.ActionEvent)

Example 50 with ActionEvent

use of java.awt.event.ActionEvent in project android-classyshark by google.

the class Toolbar method buildMappingsButton.

private JButton buildMappingsButton() {
    JButton result = new JButton(theme.getMappingIcon());
    result.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            toolbarController.onMappingsButtonPressed();
        }
    });
    result.setToolTipText("Import Proguard mapping file");
    result.setBorderPainted(false);
    result.setEnabled(true);
    return result;
}
Also used : ActionListener(java.awt.event.ActionListener) ActionEvent(java.awt.event.ActionEvent) JButton(javax.swing.JButton)

Aggregations

ActionEvent (java.awt.event.ActionEvent)1619 ActionListener (java.awt.event.ActionListener)1289 JButton (javax.swing.JButton)417 JPanel (javax.swing.JPanel)391 JLabel (javax.swing.JLabel)253 JMenuItem (javax.swing.JMenuItem)219 BoxLayout (javax.swing.BoxLayout)172 AbstractAction (javax.swing.AbstractAction)166 FlowLayout (java.awt.FlowLayout)130 Insets (java.awt.Insets)129 GridBagConstraints (java.awt.GridBagConstraints)127 Dimension (java.awt.Dimension)126 GridBagLayout (java.awt.GridBagLayout)120 JMenu (javax.swing.JMenu)118 JScrollPane (javax.swing.JScrollPane)117 JCheckBox (javax.swing.JCheckBox)109 BorderLayout (java.awt.BorderLayout)108 JTextField (javax.swing.JTextField)85 JComboBox (javax.swing.JComboBox)77 ButtonGroup (javax.swing.ButtonGroup)72