I saw something like this today:
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
What does the following part mean?
new AClass(){ this part }
Can I "extends" and create a new instance of this class inline?
I have tried to google it, but I didnt know how what it was called =/
PS: learning java =p