Tabnine Logo
TabbedFrame.setJMenuBar
Code IndexAdd Tabnine to your IDE (free)

How to use
setJMenuBar
method
in
org.jfree.ui.tabbedui.TabbedFrame

Best Java code snippets using org.jfree.ui.tabbedui.TabbedFrame.setJMenuBar (Showing top 6 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: 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 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/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());
}
org.jfree.ui.tabbeduiTabbedFramesetJMenuBar

Popular methods of TabbedFrame

  • addWindowListener
  • getTabbedUI
    Returns the UI implementation for the frame.
  • setContentPane

Popular in Java

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • JLabel (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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