( String args[] )
| 311 | } |
| 312 | |
| 313 | public static void main( String args[] ) { |
| 314 | AWTConsole console = new AWTConsole(); |
| 315 | final Frame f = new Frame("Bsh Console"); |
| 316 | f.add(console, "Center"); |
| 317 | f.pack(); |
| 318 | f.setVisible(true); |
| 319 | f.addWindowListener( new WindowAdapter() { |
| 320 | public void windowClosing( WindowEvent e ) { |
| 321 | f.dispose(); |
| 322 | } |
| 323 | } ); |
| 324 | |
| 325 | Interpreter interpreter = new Interpreter( console ); |
| 326 | interpreter.run(); |
| 327 | } |
| 328 | |
| 329 | public String toString() { |
| 330 | return "BeanShell AWTConsole"; |