remove the "Modify" button from the account configuration form

cusax-fix
Yana Stamcheva 20 years ago
parent 5d5057306b
commit 95146e5faa

@ -53,13 +53,13 @@ public class AccountsConfigurationForm extends JPanel
private I18NString newString = Messages.getI18NString("new");
private I18NString modifyString = Messages.getI18NString("modify");
//private I18NString modifyString = Messages.getI18NString("modify");
private I18NString removeString = Messages.getI18NString("remove");
private JButton newButton = new JButton(newString.getText());
private JButton modifyButton = new JButton(modifyString.getText());
//private JButton modifyButton = new JButton(modifyString.getText());
private JButton removeButton = new JButton(removeString.getText());
@ -94,15 +94,15 @@ public AccountsConfigurationForm(MainFrame mainFrame) {
*/
private void buttonsPanelInit() {
this.newButton.addActionListener(this);
this.modifyButton.addActionListener(this);
//this.modifyButton.addActionListener(this);
this.removeButton.addActionListener(this);
this.newButton.setMnemonic(newString.getMnemonic());
this.modifyButton.setMnemonic(modifyString.getMnemonic());
//this.modifyButton.setMnemonic(modifyString.getMnemonic());
this.removeButton.setMnemonic(removeString.getMnemonic());
this.buttonsPanel.add(newButton);
this.buttonsPanel.add(modifyButton);
//this.buttonsPanel.add(modifyButton);
this.buttonsPanel.add(removeButton);
this.rightPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
@ -229,6 +229,7 @@ public void actionPerformed(ActionEvent evt) {
wizard.showDialog(false);
}
/*
else if (sourceButton.equals(modifyButton)) {
if(accountsTable.getSelectedRow() != -1) {
@ -247,6 +248,7 @@ else if (sourceButton.equals(modifyButton)) {
wizard.showDialog(false);
}
}
*/
else if(sourceButton.equals(removeButton)){
if(accountsTable.getSelectedRow() != -1) {

Loading…
Cancel
Save