/** * This method gets called when a bound property is changed. * * @param evt A PropertyChangeEvent object describing the event source * and the property that has changed. */ public void propertyChange(final PropertyChangeEvent evt) { if (evt.getPropertyName().equals(AbstractTabbedUI.JMENUBAR_PROPERTY)) { setJMenuBar(getTabbedUI().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()); }
/** * This method gets called when a bound property is changed. * * @param evt A PropertyChangeEvent object describing the event source * and the property that has changed. */ public void propertyChange(final PropertyChangeEvent evt) { if (evt.getPropertyName().equals(AbstractTabbedUI.JMENUBAR_PROPERTY)) { setJMenuBar(getTabbedUI().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()); }
/** * This method gets called when a bound property is changed. * * @param evt A PropertyChangeEvent object describing the event source * and the property that has changed. */ public void propertyChange(final PropertyChangeEvent evt) { if (evt.getPropertyName().equals(AbstractTabbedUI.JMENUBAR_PROPERTY)) { setJMenuBar(getTabbedUI().getJMenuBar()); } } }