Tabnine Logo
SystemPropertiesPanel
Code IndexAdd Tabnine to your IDE (free)

How to use
SystemPropertiesPanel
in
org.jfree.ui.about

Best Java code snippets using org.jfree.ui.about.SystemPropertiesPanel (Showing top 20 results out of 315)

origin: jfree/jcommon

  public void actionPerformed(final ActionEvent e) {
    copySystemPropertiesToClipboard();
  }
});
origin: org.jfree/jcommon

  /**
   * Event handler.
   *
   * @param e  the event.
   */
  private void maybeShowPopup(final MouseEvent e) {
    if (e.isPopupTrigger()) {
      getCopyPopupMenu().show(
        getTable(), e.getX(), e.getY()
      );
    }
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Constructs a new panel.
 */
public SystemPropertiesPanel() {
  final String baseName = "org.jfree.ui.about.resources.AboutResources";
  final ResourceBundle resources = ResourceBundle.getBundle(baseName);
  setLayout(new BorderLayout());
  this.table = SystemProperties.createSystemPropertiesTable();
  add(new JScrollPane(this.table));
  // Add a popup menu to copy to the clipboard...
  this.copyPopupMenu = new JPopupMenu();
  final String label = resources.getString("system-properties-panel.popup-menu.copy");
  final KeyStroke accelerator = (KeyStroke)
    resources.getObject("system-properties-panel.popup-menu.copy.accelerator");
  this.copyMenuItem = new JMenuItem(label);
  this.copyMenuItem.setAccelerator(accelerator);
  this.copyMenuItem.getAccessibleContext().setAccessibleDescription(label);
  this.copyMenuItem.addActionListener(new ActionListener() {
    public void actionPerformed(final ActionEvent e) {
      copySystemPropertiesToClipboard();
    }
  });
  this.copyPopupMenu.add(this.copyMenuItem);
  // add popup Listener to the table
  this.copyPopupListener = new PopupListener();
  this.table.addMouseListener(this.copyPopupListener);
}
origin: org.jfree/com.springsource.org.jfree

this.panel = new SystemPropertiesPanel();
this.panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
origin: org.jfree/com.springsource.org.jfree

/**
 * Creates a tabbed pane containing an about panel and a system properties panel.
 *
 * @return a tabbed pane.
 */
private JTabbedPane createTabs(final ProjectInfo info) {
  final JTabbedPane tabs = new JTabbedPane();
  final JPanel aboutPanel = createAboutPanel(info);
  aboutPanel.setBorder(AboutDialog.STANDARD_BORDER);
  final String aboutTab = this.resources.getString("about-frame.tab.about");
  tabs.add(aboutTab, aboutPanel);
  final JPanel systemPanel = new SystemPropertiesPanel();
  systemPanel.setBorder(AboutDialog.STANDARD_BORDER);
  final String systemTab = this.resources.getString("about-frame.tab.system");
  tabs.add(systemTab, systemPanel);
  return tabs;
}
origin: jfree/jcommon

/**
 * Constructs a new panel.
 */
public SystemPropertiesPanel() {
  final String baseName = "org.jfree.ui.about.resources.AboutResources";
  final ResourceBundle resources = ResourceBundleWrapper.getBundle(
      baseName);
  setLayout(new BorderLayout());
  this.table = SystemProperties.createSystemPropertiesTable();
  add(new JScrollPane(this.table));
  // Add a popup menu to copy to the clipboard...
  this.copyPopupMenu = new JPopupMenu();
  final String label = resources.getString(
      "system-properties-panel.popup-menu.copy");
  final KeyStroke accelerator = (KeyStroke) resources.getObject(
        "system-properties-panel.popup-menu.copy.accelerator");
  this.copyMenuItem = new JMenuItem(label);
  this.copyMenuItem.setAccelerator(accelerator);
  this.copyMenuItem.getAccessibleContext().setAccessibleDescription(
      label);
  this.copyMenuItem.addActionListener(new ActionListener() {
    public void actionPerformed(final ActionEvent e) {
      copySystemPropertiesToClipboard();
    }
  });
  this.copyPopupMenu.add(this.copyMenuItem);
  // add popup Listener to the table
  this.copyPopupListener = new PopupListener();
  this.table.addMouseListener(this.copyPopupListener);
}
origin: jfree/jcommon

this.panel = new SystemPropertiesPanel();
this.panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
origin: org.jfree/com.springsource.org.jfree

/**
 * Creates a tabbed pane containing an about panel and a system properties panel.
 *
 * @return a tabbed pane.
 * @param project
 */
private JTabbedPane createTabs(final ProjectInfo project) {
  final JTabbedPane tabs = new JTabbedPane();
  final JPanel aboutPanel = createAboutPanel(project);
  aboutPanel.setBorder(AboutFrame.STANDARD_BORDER);
  final String aboutTab = this.resources.getString("about-frame.tab.about");
  tabs.add(aboutTab, aboutPanel);
  final JPanel systemPanel = new SystemPropertiesPanel();
  systemPanel.setBorder(AboutFrame.STANDARD_BORDER);
  final String systemTab = this.resources.getString("about-frame.tab.system");
  tabs.add(systemTab, systemPanel);
  return tabs;
}
origin: jfree/jcommon

  /**
   * Event handler.
   *
   * @param e  the event.
   */
  private void maybeShowPopup(final MouseEvent e) {
    if (e.isPopupTrigger()) {
      getCopyPopupMenu().show(
        getTable(), e.getX(), e.getY()
      );
    }
  }
}
origin: org.jfree/jcommon

/**
 * Constructs a new panel.
 */
public SystemPropertiesPanel() {
  final String baseName = "org.jfree.ui.about.resources.AboutResources";
  final ResourceBundle resources = ResourceBundleWrapper.getBundle(
      baseName);
  setLayout(new BorderLayout());
  this.table = SystemProperties.createSystemPropertiesTable();
  add(new JScrollPane(this.table));
  // Add a popup menu to copy to the clipboard...
  this.copyPopupMenu = new JPopupMenu();
  final String label = resources.getString(
      "system-properties-panel.popup-menu.copy");
  final KeyStroke accelerator = (KeyStroke) resources.getObject(
        "system-properties-panel.popup-menu.copy.accelerator");
  this.copyMenuItem = new JMenuItem(label);
  this.copyMenuItem.setAccelerator(accelerator);
  this.copyMenuItem.getAccessibleContext().setAccessibleDescription(
      label);
  this.copyMenuItem.addActionListener(new ActionListener() {
    public void actionPerformed(final ActionEvent e) {
      copySystemPropertiesToClipboard();
    }
  });
  this.copyPopupMenu.add(this.copyMenuItem);
  // add popup Listener to the table
  this.copyPopupListener = new PopupListener();
  this.table.addMouseListener(this.copyPopupListener);
}
origin: org.jfree/jcommon

this.panel = new SystemPropertiesPanel();
this.panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
origin: org.jfree/com.springsource.org.jfree

  public void actionPerformed(final ActionEvent e) {
    copySystemPropertiesToClipboard();
  }
});
origin: jfree/jcommon

/**
 * Creates a tabbed pane containing an about panel and a system properties
 * panel.
 *
 * @return a tabbed pane.
 * @param project
 */
private JTabbedPane createTabs(final ProjectInfo project) {
  final JTabbedPane tabs = new JTabbedPane();
  final JPanel aboutPanel = createAboutPanel(project);
  aboutPanel.setBorder(AboutFrame.STANDARD_BORDER);
  final String aboutTab = this.resources.getString(
      "about-frame.tab.about");
  tabs.add(aboutTab, aboutPanel);
  final JPanel systemPanel = new SystemPropertiesPanel();
  systemPanel.setBorder(AboutFrame.STANDARD_BORDER);
  final String systemTab = this.resources.getString(
      "about-frame.tab.system");
  tabs.add(systemTab, systemPanel);
  return tabs;
}
origin: org.jfree/com.springsource.org.jfree

  /**
   * Event handler.
   *
   * @param e  the event.
   */
  private void maybeShowPopup(final MouseEvent e) {
    if (e.isPopupTrigger()) {
      getCopyPopupMenu().show(
        getTable(), e.getX(), e.getY()
      );
    }
  }
}
origin: org.jfree/jcommon

  public void actionPerformed(final ActionEvent e) {
    copySystemPropertiesToClipboard();
  }
});
origin: jfree/jcommon

/**
 * Creates a tabbed pane containing an about panel and a system properties
 * panel.
 *
 * @param info  project information.
 *
 * @return a tabbed pane.
 */
private JTabbedPane createTabs(final ProjectInfo info) {
  final JTabbedPane tabs = new JTabbedPane();
  final JPanel aboutPanel = createAboutPanel(info);
  aboutPanel.setBorder(AboutDialog.STANDARD_BORDER);
  final String aboutTab = this.resources.getString(
      "about-frame.tab.about");
  tabs.add(aboutTab, aboutPanel);
  final JPanel systemPanel = new SystemPropertiesPanel();
  systemPanel.setBorder(AboutDialog.STANDARD_BORDER);
  final String systemTab = this.resources.getString(
      "about-frame.tab.system");
  tabs.add(systemTab, systemPanel);
  return tabs;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Handles action events generated by the user.
 *
 * @param e  the event.
 */
public void actionPerformed(final ActionEvent e) {
  final String command = e.getActionCommand();
  if (command.equals(CLOSE_COMMAND)) {
    dispose();
  }
  else if (command.equals(COPY_COMMAND)) {
    this.panel.copySystemPropertiesToClipboard();
  }
}
origin: org.jfree/jcommon

/**
 * Creates a tabbed pane containing an about panel and a system properties
 * panel.
 *
 * @return a tabbed pane.
 * @param project
 */
private JTabbedPane createTabs(final ProjectInfo project) {
  final JTabbedPane tabs = new JTabbedPane();
  final JPanel aboutPanel = createAboutPanel(project);
  aboutPanel.setBorder(AboutFrame.STANDARD_BORDER);
  final String aboutTab = this.resources.getString(
      "about-frame.tab.about");
  tabs.add(aboutTab, aboutPanel);
  final JPanel systemPanel = new SystemPropertiesPanel();
  systemPanel.setBorder(AboutFrame.STANDARD_BORDER);
  final String systemTab = this.resources.getString(
      "about-frame.tab.system");
  tabs.add(systemTab, systemPanel);
  return tabs;
}
origin: jfree/jcommon

/**
 * Handles action events generated by the user.
 *
 * @param e  the event.
 */
public void actionPerformed(final ActionEvent e) {
  final String command = e.getActionCommand();
  if (command.equals(CLOSE_COMMAND)) {
    dispose();
  }
  else if (command.equals(COPY_COMMAND)) {
    this.panel.copySystemPropertiesToClipboard();
  }
}
origin: org.jfree/jcommon

/**
 * Creates a tabbed pane containing an about panel and a system properties
 * panel.
 *
 * @param info  project information.
 *
 * @return a tabbed pane.
 */
private JTabbedPane createTabs(final ProjectInfo info) {
  final JTabbedPane tabs = new JTabbedPane();
  final JPanel aboutPanel = createAboutPanel(info);
  aboutPanel.setBorder(AboutDialog.STANDARD_BORDER);
  final String aboutTab = this.resources.getString(
      "about-frame.tab.about");
  tabs.add(aboutTab, aboutPanel);
  final JPanel systemPanel = new SystemPropertiesPanel();
  systemPanel.setBorder(AboutDialog.STANDARD_BORDER);
  final String systemTab = this.resources.getString(
      "about-frame.tab.system");
  tabs.add(systemTab, systemPanel);
  return tabs;
}
org.jfree.ui.aboutSystemPropertiesPanel

Javadoc

A panel containing a table of system properties.

Most used methods

  • <init>
    Constructs a new panel.
  • add
  • copySystemPropertiesToClipboard
    Copies the selected cells in the table to the clipboard, in tab-delimited format.
  • getCopyPopupMenu
    Returns the copy popup menu.
  • getTable
    Returns the table containing the system properties.
  • setBorder
  • setLayout

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Path (java.nio.file)
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Top Vim plugins
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