What's this language feature called?
<pre><code>JPanel panel = new JPanel() {
        public void setBackground(Color c) {
           Logger.global.info("setBackground: c=" + c);
           super.setBackground(c);
        }
    };
</code></pre>

<p>I only know I can do <code>JPanel panel = new JPanel();</code></p>

<p>Why can someone do the above? What's the name for it?</p>
