diff options
Diffstat (limited to 'tutorial/examples/autoimp/InnerTest.java')
-rw-r--r-- | tutorial/examples/autoimp/InnerTest.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tutorial/examples/autoimp/InnerTest.java b/tutorial/examples/autoimp/InnerTest.java new file mode 100644 index 0000000..f97f1d8 --- /dev/null +++ b/tutorial/examples/autoimp/InnerTest.java @@ -0,0 +1,29 @@ +/* + * This code was generated by ojc. + */ +/* quick implementation! */ +package examples.autoimp; + + +import java.awt.event.*; + + +public class InnerTest +{ + + public static void main( String[] args ) + { + WindowListener tmp = new MyWindowListener(); + } + + static class MyWindowListener implements WindowListener + { + + public void windowClosed( WindowEvent e ) + { + System.exit( 0 ); + } + + } + +} |