protected JPanel createButtonPanel() {
JPanel bottom = new JPanel();
bottom.setLayout(new BorderLayout());
//bottom.setLayout( new BoxLayout( bottom, BoxLayout.X_AXIS ) );
// bottom.setLayout( new BoxLayout( bottom, BoxLayout.X_AXIS ) );
bottom.setBorder(BorderFactory.createEmptyBorder(17, 12, 11, 11));
//bottom.add( Box.createHorizontalStrut());
// bottom.add( Box.createHorizontalStrut());
cancelButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "cancel"));
//$NON-NLS-1$ //$NON-NLS-2$
cancelButton.addActionListener(this );
cancelButton.setActionCommand("CANCEL"); //$NON-NLS-1$
okButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "ok"));
//$NON-NLS-1$ //$NON-NLS-2$
okButton.addActionListener(this );
okButton.setActionCommand("OK"); //$NON-NLS-1$
okButton.setDefaultCapable(true);
[[#variable13243540]].setDefaultButton(okButton);
helpButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "help"));
//$NON-NLS-1$ //$NON-NLS-2$
JPanel buttonPanel = new JPanel();
buttonPanel.setLayout(new GridLayout(1, 3, 5, 0));
buttonPanel.add(okButton);
buttonPanel.add(cancelButton);
buttonPanel.add(helpButton);
//bottom.add( Box.createHorizontalGlue() );
// bottom.add( Box.createHorizontalGlue() );
bottom.add(buttonPanel, BorderLayout.EAST);
return bottom;
}
|