| 42 | // ----------------------------------------------------------------- |
| 43 | |
| 44 | public InternalFrames() { |
| 45 | super("VTK Internal Frame Demo"); |
| 46 | screenSize = Toolkit.getDefaultToolkit().getScreenSize(); |
| 47 | this.setSize(900, 900); |
| 48 | |
| 49 | WindowListener l = new WindowAdapter() { |
| 50 | public void windowClosing(WindowEvent e) { |
| 51 | System.exit(0); |
| 52 | } |
| 53 | }; |
| 54 | this.addWindowListener(l); |
| 55 | |
| 56 | this.getContentPane().add(new SplitFrame()); |
| 57 | |
| 58 | new MenuMgr(); |
| 59 | |
| 60 | this.setVisible(true); |
| 61 | } |
| 62 | |
| 63 | public void addMenuBar(JMenuBar m) { |
| 64 | setJMenuBar(m); |