JPanel panel = new JPanel() {
public void setBackground(Color c) {
Logger.global.info("setBackground: c=" + c);
super.setBackground(c);
}
};
I only know I can do JPanel panel = new JPanel();
Why can someone do the above? What's the name for it?