Disable all unused menus and buttons.

cusax-fix
Yana Stamcheva 21 years ago
parent f1971ca3d6
commit 5ef856aad9

@ -51,6 +51,12 @@ private void init(){
this.add(toolsMenu);
this.add(viewMenu);
this.add(helpMenu);
//Disable all menus that are not yet implemented.
this.userMenu.setEnabled(false);
this.toolsMenu.setEnabled(false);
this.viewMenu.setEnabled(false);
this.helpMenu.setEnabled(false);
}
public void paint(Graphics g){

@ -70,9 +70,9 @@ private void init() {
this.add(addButton);
this.add(configureButton);
this.add(searchButton);
this.add(infoButton);
this.add(searchButton);
this.addButton.setName("add");
this.configureButton.setName("config");
this.searchButton.setName("search");
@ -82,6 +82,11 @@ private void init() {
this.configureButton.addActionListener(this);
this.searchButton.addActionListener(this);
this.infoButton.addActionListener(this);
//Disable all buttons that do nothing.
this.addButton.setEnabled(false);
this.configureButton.setEnabled(false);
this.infoButton.setEnabled(false);
}
public void actionPerformed(ActionEvent e) {

@ -58,6 +58,10 @@ public FileMenu(ChatWindow parentWindow){
this.saveMenuItem.addActionListener(this);
this.printMenuItem.addActionListener(this);
this.closeMenuItem.addActionListener(this);
//Disable all menu items that do nothing.
this.saveMenuItem.setEnabled(false);
this.printMenuItem.setEnabled(false);
}
public void paint(Graphics g){

@ -49,6 +49,9 @@ public void init(){
this.add(helpMenu);
//Disable all menus that are not yet implemented.
this.settingsMenu.setEnabled(false);
this.helpMenu.setEnabled(false);
}
public void paint(Graphics g){

@ -124,6 +124,15 @@ public MainToolBar (ChatWindow messageWindow){
this.sendFileButton.addActionListener(this);
this.historyButton.addActionListener(this);
this.fontButton.addActionListener(this);
//Disable all buttons that do nothing.
this.saveButton.setEnabled(false);
this.printButton.setEnabled(false);
this.previousButton.setEnabled(false);
this.nextButton.setEnabled(false);
this.sendFileButton.setEnabled(false);
this.historyButton.setEnabled(false);
this.fontButton.setEnabled(false);
}
public void actionPerformed(ActionEvent e) {

Loading…
Cancel
Save