1 | private JPanel createButtonPanel() {
↵ | | 1 | protected JPanel createButtonPanel() {↵
|
2 | JPanel bottom = new JPanel();
↵ | | 2 | JPanel bottom = new JPanel();↵
|
3 | bottom.setLayout(new BorderLayout());
↵ | | 3 | bottom.setLayout(new BorderLayout());↵
|
|
4 | bottom.setBorder(new SingleSideEtchedBorder(SwingConstants.TOP));↵ | | 4 | // bottom.setBorder(new SingleSideEtchedBorder(SwingConstants.TOP));↵
|
5 |
↵ | | |
|
| | | 5 | // bottom.setLayout( new BoxLayout( bottom, BoxLayout.X_AXIS ) );↵
|
| | | 6 | // bottom.add( Box.createHorizontalStrut());↵
|
6 | ButtonWithMnemonic cancelButton = new ButtonWithMnemonic(
↵ | | 7 | ButtonWithMnemonic cancelButton = new ButtonWithMnemonic(↵
|
7 | MailResourceLoader.getString("global", "cancel"));↵ | | 8 | MailResourceLoader.getString("global", "cancel"));↵
|
8 |
↵ | | 9 | //$NON-NLS-1$ //$NON-NLS-2$↵
|
|
9 | //$NON-NLS-1$ //$NON-NLS-2$
↵ | | 10 | //$NON-NLS-1$ //$NON-NLS-2$↵
|
10 | cancelButton.addActionListener(this);
↵ | | 11 | cancelButton.addActionListener(this);↵
|
11 | cancelButton.setActionCommand("CANCEL"); //$NON-NLS-1$↵ | | 12 | cancelButton.setActionCommand("CANCEL"); //$NON-NLS-1$↵
|
12 |
↵ | | |
|
|
13 | ButtonWithMnemonic okButton = new ButtonWithMnemonic(MailResourceLoader
↵ | | 13 | ButtonWithMnemonic okButton = new ButtonWithMnemonic(MailResourceLoader↵
|
14 | .getString("global", "ok"));↵ | | 14 | .getString("global", "ok"));↵
|
15 |
↵ | | 15 | //$NON-NLS-1$ //$NON-NLS-2$↵
|
|
16 | //$NON-NLS-1$ //$NON-NLS-2$
↵ | | 16 | //$NON-NLS-1$ //$NON-NLS-2$↵
|
17 | okButton.addActionListener(this);
↵ | | 17 | okButton.addActionListener(this);↵
|
18 | okButton.setActionCommand("OK"); //$NON-NLS-1$
↵ | | 18 | okButton.setActionCommand("OK"); //$NON-NLS-1$↵
|
19 | okButton.setDefaultCapable(true);
↵ | | 19 | okButton.setDefaultCapable(true);↵
|
20 | getRootPane().setDefaultButton(okButton);↵ | | 20 | getRootPane().setDefaultButton(okButton);↵
|
21 |
↵ | | |
|
|
22 | ButtonWithMnemonic helpButton = new ButtonWithMnemonic(
↵ | | 21 | ButtonWithMnemonic helpButton = new ButtonWithMnemonic(↵
|
23 | MailResourceLoader.getString("global", "help"));↵ | | 22 | MailResourceLoader.getString("global", "help"));↵
|
24 |
↵ | | 23 | //$NON-NLS-1$ //$NON-NLS-2$↵
|
|
25 | // associate with JavaHelp
↵ | | 24 | // associate with JavaHelp↵
|
26 | HelpManager.getInstance().enableHelpOnButton(helpButton,
↵ | | 25 | HelpManager.getInstance().enableHelpOnButton(helpButton,↵
|
27 | "configuring_columba");↵ | | 26 | "↵
|
28 |
↵ | | 27 | folder_options");↵
|
| | | 28 | HelpManager.getInstance()↵
|
| | | 29 | .enableHelpKey(getRootPane(), "folder_options");↵
|
|
29 | JPanel buttonPanel = new JPanel();
↵ | | 30 | JPanel buttonPanel = new JPanel();↵
|
30 | buttonPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));
↵ | | 31 | buttonPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));↵
|
31 | buttonPanel.setLayout(new GridLayout(1, 3, 6, 0));
↵ | | 32 | buttonPanel.setLayout(new GridLayout(1, 3, 6, 0));↵
|
32 | buttonPanel.add(okButton);
↵ | | 33 | buttonPanel.add(okButton);↵
|
33 | buttonPanel.add(cancelButton);
↵ | | 34 | buttonPanel.add(cancelButton);↵
|
34 | buttonPanel.add(helpButton);↵ | | 35 | buttonPanel.add(helpButton);↵
|
35 |
↵ | | |
|
|
| | | 36 | // bottom.add( Box.createHorizontalGlue() );↵
|
36 | bottom.add(buttonPanel, BorderLayout.EAST);↵ | | 37 | bottom.add(buttonPanel, BorderLayout.EAST);↵
|
37 |
↵ | | |
|
|
38 | return bottom;
↵ | | 38 | return bottom;↵
|
39 | | | 39 |
|