/** * Initialises the applet. * * @param tabbedUI the UI that controls the applet. */ public void init(final AbstractTabbedUI tabbedUI) { this.tabbedUI = tabbedUI; this.tabbedUI.addPropertyChangeListener (AbstractTabbedUI.JMENUBAR_PROPERTY, new MenuBarChangeListener()); final JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); panel.add(tabbedUI, BorderLayout.CENTER); setContentPane(panel); setJMenuBar(tabbedUI.getJMenuBar()); }
/** * Initialises the applet. * * @param tabbedUI the UI that controls the applet. */ public void init(final AbstractTabbedUI tabbedUI) { this.tabbedUI = tabbedUI; this.tabbedUI.addPropertyChangeListener (AbstractTabbedUI.JMENUBAR_PROPERTY, new MenuBarChangeListener()); final JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); panel.add(tabbedUI, BorderLayout.CENTER); setContentPane(panel); setJMenuBar(tabbedUI.getJMenuBar()); }
/** * Initialises the applet. * * @param tabbedUI the UI that controls the applet. */ public void init(final AbstractTabbedUI tabbedUI) { this.tabbedUI = tabbedUI; this.tabbedUI.addPropertyChangeListener (AbstractTabbedUI.JMENUBAR_PROPERTY, new MenuBarChangeListener()); final JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); panel.add(tabbedUI, BorderLayout.CENTER); setContentPane(panel); setJMenuBar(tabbedUI.getJMenuBar()); }