How to initialize anonymous inner class in Java
<p>is there any way to initialize anonymous inner class in Java? For example:</p>

<pre><code>new AbstractAction() {
    actionPerformed(ActionEvent event) {
    ...
    }
}
</code></pre>

<p>Is there any way to use for example putValue method somewhere in the class declaration?</p>

<p>Thank you for help.</p>
