Search in sources :

Example 41 with ActionListener

use of java.awt.event.ActionListener 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 42 with ActionListener

use of java.awt.event.ActionListener 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 43 with ActionListener

use of java.awt.event.ActionListener 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 44 with ActionListener

use of java.awt.event.ActionListener 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 45 with ActionListener

use of java.awt.event.ActionListener 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

ActionListener (java.awt.event.ActionListener)1347 ActionEvent (java.awt.event.ActionEvent)1303 JButton (javax.swing.JButton)363 JPanel (javax.swing.JPanel)345 JLabel (javax.swing.JLabel)234 JMenuItem (javax.swing.JMenuItem)191 BoxLayout (javax.swing.BoxLayout)150 GridBagConstraints (java.awt.GridBagConstraints)121 Insets (java.awt.Insets)121 GridBagLayout (java.awt.GridBagLayout)114 Dimension (java.awt.Dimension)113 FlowLayout (java.awt.FlowLayout)110 JCheckBox (javax.swing.JCheckBox)103 JScrollPane (javax.swing.JScrollPane)103 JMenu (javax.swing.JMenu)96 BorderLayout (java.awt.BorderLayout)88 JTextField (javax.swing.JTextField)79 JComboBox (javax.swing.JComboBox)73 ButtonGroup (javax.swing.ButtonGroup)64 ArrayList (java.util.ArrayList)60