KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > usage > InputInnerUsedMethod


1 package com.puppycrawl.tools.checkstyle.usage;
2
3 import java.awt.event.ActionEvent JavaDoc;
4 import javax.swing.AbstractAction JavaDoc;
5 import javax.swing.JButton JavaDoc;
6
7 public final class InputInnerUsedMethod
8 {
9    public static void show()
10    {
11       JButton JavaDoc b = new JButton JavaDoc(new AbstractAction JavaDoc()
12       {
13          public void actionPerformed(ActionEvent JavaDoc e)
14          {
15                doSomething();
16          }
17       });
18    }
19
20    private static void doSomething()
21    {
22    }
23 }
24
Popular Tags