use of javax.swing.JButton in project binnavi by google.
the class TypeDialog method createButtons.
private void createButtons() {
final JPanel buttonPane = new JPanel();
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
getContentPane().add(buttonPane, BorderLayout.SOUTH);
{
final JButton okButton = new JButton("Ok");
okButton.addActionListener(new OkActionListener());
buttonPane.add(okButton);
getRootPane().setDefaultButton(okButton);
}
final JButton cancelButton = new JButton("Cancel");
cancelButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(final ActionEvent e) {
dispose();
}
});
buttonPane.add(cancelButton);
}
use of javax.swing.JButton 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;
}
use of javax.swing.JButton 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;
}
use of javax.swing.JButton 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;
}
use of javax.swing.JButton 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;
}
Aggregations