I copied the following code from a site. Its an Anonymous class.
What is the name of the class.Code:okButton.addActionListener( new ActionListener(){
public void actionPerformed(ActionEvent e){
dispose();
}
});
- PEACE
Printable View
I copied the following code from a site. Its an Anonymous class.
What is the name of the class.Code:okButton.addActionListener( new ActionListener(){
public void actionPerformed(ActionEvent e){
dispose();
}
});
- PEACE
It has no name :) Anonymous class is a class without a name.