Panel buttons = new Panel();
buttons.setLayout(new GridLayout(1, 0, 20, 5));
Button update = new Button(Messages
.getString("CommonSettingsDialog.Update")); //$NON-NLS-1$
update.setActionCommand(CommonSettingsDialog.UPDATE);
update.addActionListener(this);
buttons.add(update);
Button cancel = new Button(Messages.getString("Cancel")); //$NON-NLS-1$
cancel.setActionCommand(CommonSettingsDialog.CANCEL);
cancel.addActionListener(this);
buttons.add(cancel);