Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Magenta Ricci   on Sep 22 In Java Category.

  
Question Answered By: Gerald Cruz   on Sep 22

Revise the method actionPerformed like:

public void  actionPerformed (ActionEvent e){
applet.showStatus("You Pressed: " + e.paramString());
String actionCommand = e.getActionCommand();
if (actionCommand.equals("ClassList")){
ClassList classList = new ClassList();
classList.init();
removeAll();
add(classList);
setVisible(true);
}
}

Share: