public void actionPerformed(final ActionEvent e) { copySystemPropertiesToClipboard(); } });
/** * Event handler. * * @param e the event. */ private void maybeShowPopup(final MouseEvent e) { if (e.isPopupTrigger()) { getCopyPopupMenu().show( getTable(), e.getX(), e.getY() ); } } }
/** * 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); }
this.panel = new SystemPropertiesPanel(); this.panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
/** * 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; }
/** * 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); }
this.panel = new SystemPropertiesPanel(); this.panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
/** * 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; }
/** * Event handler. * * @param e the event. */ private void maybeShowPopup(final MouseEvent e) { if (e.isPopupTrigger()) { getCopyPopupMenu().show( getTable(), e.getX(), e.getY() ); } } }
/** * 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); }
this.panel = new SystemPropertiesPanel(); this.panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
public void actionPerformed(final ActionEvent e) { copySystemPropertiesToClipboard(); } });
/** * 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; }
/** * Event handler. * * @param e the event. */ private void maybeShowPopup(final MouseEvent e) { if (e.isPopupTrigger()) { getCopyPopupMenu().show( getTable(), e.getX(), e.getY() ); } } }
public void actionPerformed(final ActionEvent e) { copySystemPropertiesToClipboard(); } });
/** * 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; }
/** * 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(); } }
/** * 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; }
/** * 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(); } }
/** * 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; }