congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
AbstractTabbedUI.getJMenuBar
Code IndexAdd Tabnine to your IDE (free)

How to use
getJMenuBar
method
in
org.jfree.ui.tabbedui.AbstractTabbedUI

Best Java code snippets using org.jfree.ui.tabbedui.AbstractTabbedUI.getJMenuBar (Showing top 20 results out of 315)

origin: jfree/jcommon

  /**
   * 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());
    }
  }
}
origin: org.jfree/jcommon

  /**
   * 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());
    }
  }
}
origin: jfree/jcommon

  /**
   * 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());
    }
  }
}
origin: org.jfree/com.springsource.org.jfree

  /**
   * 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());
    }
  }
}
origin: org.jfree/jcommon

  /**
   * 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());
    }
  }
}
origin: org.jfree/com.springsource.org.jfree

  /**
   * 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());
    }
  }
}
origin: jfree/jcommon

  /**
   * 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());
    }
  }
}
origin: org.jfree/jcommon

  /**
   * 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());
    }
  }
}
origin: org.jfree/com.springsource.org.jfree

  /**
   * 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());
    }
  }
}
origin: jfree/jcommon

/**
 * 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());
}
origin: org.jfree/com.springsource.org.jfree

/**
 * 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());
}
origin: org.jfree/jcommon

/**
 * 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());
}
origin: jfree/jcommon

/**
 * Initialises the dialog.
 *
 * @param tabbedUI  the UI that controls the dialog.
 */
public void init(final AbstractTabbedUI tabbedUI) {
  this.tabbedUI = tabbedUI;
  this.tabbedUI.addPropertyChangeListener(
    AbstractTabbedUI.JMENUBAR_PROPERTY, new MenuBarChangeListener()
  );
  addWindowListener(new WindowAdapter() {
    public void windowClosing(final WindowEvent e) {
      getTabbedUI().getCloseAction().actionPerformed
        (new ActionEvent(this, ActionEvent.ACTION_PERFORMED, null, 0));
    }
  });
  final JPanel panel = new JPanel();
  panel.setLayout(new BorderLayout());
  panel.add(tabbedUI, BorderLayout.CENTER);
  setContentPane(panel);
  setJMenuBar(tabbedUI.getJMenuBar());
}
origin: org.jfree/jcommon

/**
 * Initialises the dialog.
 *
 * @param tabbedUI  the UI that controls the dialog.
 */
public void init(final AbstractTabbedUI tabbedUI) {
  this.tabbedUI = tabbedUI;
  this.tabbedUI.addPropertyChangeListener
    (AbstractTabbedUI.JMENUBAR_PROPERTY, new MenuBarChangeListener());
  addWindowListener(new WindowAdapter() {
    public void windowClosing(final WindowEvent e) {
      getTabbedUI().getCloseAction().actionPerformed
        (new ActionEvent(this, ActionEvent.ACTION_PERFORMED, null, 0));
    }
  });
  final JPanel panel = new JPanel();
  panel.setLayout(new BorderLayout());
  panel.add(tabbedUI, BorderLayout.CENTER);
  setContentPane(panel);
  setJMenuBar(tabbedUI.getJMenuBar());
}
origin: jfree/jcommon

/**
 * Initialises the dialog.
 *
 * @param tabbedUI  the UI that controls the dialog.
 */
public void init(final AbstractTabbedUI tabbedUI) {
  this.tabbedUI = tabbedUI;
  this.tabbedUI.addPropertyChangeListener
    (AbstractTabbedUI.JMENUBAR_PROPERTY, new MenuBarChangeListener());
  addWindowListener(new WindowAdapter() {
    public void windowClosing(final WindowEvent e) {
      getTabbedUI().getCloseAction().actionPerformed
        (new ActionEvent(this, ActionEvent.ACTION_PERFORMED, null, 0));
    }
  });
  final JPanel panel = new JPanel();
  panel.setLayout(new BorderLayout());
  panel.add(tabbedUI, BorderLayout.CENTER);
  setContentPane(panel);
  setJMenuBar(tabbedUI.getJMenuBar());
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Initialises the dialog.
 *
 * @param tabbedUI  the UI that controls the dialog.
 */
public void init(final AbstractTabbedUI tabbedUI) {
  this.tabbedUI = tabbedUI;
  this.tabbedUI.addPropertyChangeListener
    (AbstractTabbedUI.JMENUBAR_PROPERTY, new MenuBarChangeListener());
  addWindowListener(new WindowAdapter() {
    public void windowClosing(final WindowEvent e) {
      getTabbedUI().getCloseAction().actionPerformed
        (new ActionEvent(this, ActionEvent.ACTION_PERFORMED, null, 0));
    }
  });
  final JPanel panel = new JPanel();
  panel.setLayout(new BorderLayout());
  panel.add(tabbedUI, BorderLayout.CENTER);
  setContentPane(panel);
  setJMenuBar(tabbedUI.getJMenuBar());
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Initialises the dialog.
 *
 * @param tabbedUI  the UI that controls the dialog.
 */
public void init(final AbstractTabbedUI tabbedUI) {
  this.tabbedUI = tabbedUI;
  this.tabbedUI.addPropertyChangeListener(
    AbstractTabbedUI.JMENUBAR_PROPERTY, new MenuBarChangeListener()
  );
  addWindowListener(new WindowAdapter() {
    public void windowClosing(final WindowEvent e) {
      getTabbedUI().getCloseAction().actionPerformed
        (new ActionEvent(this, ActionEvent.ACTION_PERFORMED, null, 0));
    }
  });
  final JPanel panel = new JPanel();
  panel.setLayout(new BorderLayout());
  panel.add(tabbedUI, BorderLayout.CENTER);
  setContentPane(panel);
  setJMenuBar(tabbedUI.getJMenuBar());
}
origin: jfree/jcommon

/**
 * Updates the global menu bar.
 * @return the fully initialized menu bar.
 */
private JMenuBar updateGlobalMenubar () {
 JMenuBar menuBar = getJMenuBar();
 if (menuBar == null) {
   menuBar = new JMenuBar();
 }
 else {
   menuBar.removeAll();
 }
 addMenus(menuBar, getPrefixMenus());
 for (int i = 0; i < this.rootEditors.size(); i++)
 {
   final RootEditor editor = (RootEditor) this.rootEditors.get(i);
   addMenus(menuBar, editor.getMenus());
 }
 addMenus(menuBar, getPostfixMenus());
 return menuBar;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Updates the global menu bar.
 * @return the fully initialized menu bar.
 */
private JMenuBar updateGlobalMenubar () {
 JMenuBar menuBar = getJMenuBar();
 if (menuBar == null) {
   menuBar = new JMenuBar();
 }
 else {
   menuBar.removeAll();
 }
 addMenus(menuBar, getPrefixMenus());
 for (int i = 0; i < this.rootEditors.size(); i++)
 {
   final RootEditor editor = (RootEditor) this.rootEditors.get(i);
   addMenus(menuBar, editor.getMenus());
 }
 addMenus(menuBar, getPostfixMenus());
 return menuBar;
}
origin: org.jfree/jcommon

/**
 * Updates the global menu bar.
 * @return the fully initialized menu bar.
 */
private JMenuBar updateGlobalMenubar () {
 JMenuBar menuBar = getJMenuBar();
 if (menuBar == null) {
   menuBar = new JMenuBar();
 }
 else {
   menuBar.removeAll();
 }
 addMenus(menuBar, getPrefixMenus());
 for (int i = 0; i < this.rootEditors.size(); i++)
 {
   final RootEditor editor = (RootEditor) this.rootEditors.get(i);
   addMenus(menuBar, editor.getMenus());
 }
 addMenus(menuBar, getPostfixMenus());
 return menuBar;
}
org.jfree.ui.tabbeduiAbstractTabbedUIgetJMenuBar

Javadoc

Returns the menu bar.

Popular methods of AbstractTabbedUI

  • add
  • addMenus
    Adds menus.
  • addPropertyChangeListener
  • attempExit
    Attempts to exit.
  • closeToolbar
    Closes the toolbar.
  • createCloseAction
    Creates a close action.
  • createEditorMenubar
    Creates a menu bar.
  • firePropertyChange
  • getCloseAction
    Returns the close action.
  • getPostfixMenus
    The postfix menus.
  • getPrefixMenus
    Returns the prefix menus.
  • getRootEditor
    Returns the specified editor.
  • getPrefixMenus,
  • getRootEditor,
  • getRootEditorCount,
  • getSelectedEditor,
  • isGlobalMenu,
  • setJMenuBar,
  • setLayout,
  • setSelectedEditor,
  • updateGlobalMenubar

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JLabel (javax.swing)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now