/** * Creates a new instance. * * @param locale the locale. * @param baseName the base name of the resource bundle, a fully qualified * class name */ public ResourceBundleSupport(final Locale locale, final String baseName) { this(locale, ResourceBundleWrapper.getBundle(baseName, locale), baseName); }
/** * Creates a new instance. * * @param locale the locale. * @param baseName the base name of the resource bundle, a fully qualified * class name */ public ResourceBundleSupport(final Locale locale, final String baseName) { this(locale, ResourceBundleWrapper.getBundle(baseName, locale), baseName); }
/** * Creates a new instance. * * @param baseName the base name of the resource bundle, a fully qualified * class name */ public ResourceBundleSupport(final String baseName) { this(Locale.getDefault(), ResourceBundleWrapper.getBundle(baseName), baseName); }
/** * Creates a new instance. * * @param baseName the base name of the resource bundle, a fully qualified * class name */ public ResourceBundleSupport(final String baseName) { this(Locale.getDefault(), ResourceBundleWrapper.getBundle(baseName), baseName); }
/** * Constructs a ContributorsTableModel. * * @param contributors the contributors. */ public ContributorsTableModel(final List contributors) { this.contributors = contributors; final String baseName = "org.jfree.ui.about.resources.AboutResources"; final ResourceBundle resources = ResourceBundleWrapper.getBundle( baseName); this.nameColumnLabel = resources.getString( "contributors-table.column.name"); this.contactColumnLabel = resources.getString( "contributors-table.column.contact"); }
/** * Constructs a ContributorsTableModel. * * @param contributors the contributors. */ public ContributorsTableModel(final List contributors) { this.contributors = contributors; final String baseName = "org.jfree.ui.about.resources.AboutResources"; final ResourceBundle resources = ResourceBundleWrapper.getBundle( baseName); this.nameColumnLabel = resources.getString( "contributors-table.column.name"); this.contactColumnLabel = resources.getString( "contributors-table.column.contact"); }
/** * Constructs a LibraryTableModel. * * @param libraries the libraries. */ public LibraryTableModel(final List libraries) { this.libraries = (Library[]) libraries.toArray(new Library[libraries.size()]); final String baseName = "org.jfree.ui.about.resources.AboutResources"; final ResourceBundle resources = ResourceBundleWrapper.getBundle( baseName); this.nameColumnLabel = resources.getString( "libraries-table.column.name"); this.versionColumnLabel = resources.getString( "libraries-table.column.version"); this.licenceColumnLabel = resources.getString( "libraries-table.column.licence"); this.infoColumnLabel = resources.getString( "libraries-table.column.info"); }
/** * Constructs a LibraryTableModel. * * @param libraries the libraries. */ public LibraryTableModel(final List libraries) { this.libraries = (Library[]) libraries.toArray(new Library[libraries.size()]); final String baseName = "org.jfree.ui.about.resources.AboutResources"; final ResourceBundle resources = ResourceBundleWrapper.getBundle( baseName); this.nameColumnLabel = resources.getString( "libraries-table.column.name"); this.versionColumnLabel = resources.getString( "libraries-table.column.version"); this.licenceColumnLabel = resources.getString( "libraries-table.column.licence"); this.infoColumnLabel = resources.getString( "libraries-table.column.info"); }
/** * Creates a new table model using the properties of the current Java * Virtual Machine. */ public SystemPropertiesTableModel() { this.properties = new java.util.ArrayList(); try { final Properties p = System.getProperties(); final Iterator iterator = p.keySet().iterator(); while (iterator.hasNext()) { final String name = (String) iterator.next(); final String value = System.getProperty(name); final SystemProperty sp = new SystemProperty(name, value); this.properties.add(sp); } } catch (SecurityException se) { // ignore SecurityExceptions } Collections.sort(this.properties, new SystemPropertyComparator(true)); final String baseName = "org.jfree.ui.about.resources.AboutResources"; final ResourceBundle resources = ResourceBundleWrapper.getBundle( baseName); this.nameColumnLabel = resources.getString( "system-properties-table.column.name"); this.valueColumnLabel = resources.getString( "system-properties-table.column.value"); }
/** * Creates a new table model using the properties of the current Java * Virtual Machine. */ public SystemPropertiesTableModel() { this.properties = new java.util.ArrayList(); try { final Properties p = System.getProperties(); final Iterator iterator = p.keySet().iterator(); while (iterator.hasNext()) { final String name = (String) iterator.next(); final String value = System.getProperty(name); final SystemProperty sp = new SystemProperty(name, value); this.properties.add(sp); } } catch (SecurityException se) { // ignore SecurityExceptions } Collections.sort(this.properties, new SystemPropertyComparator(true)); final String baseName = "org.jfree.ui.about.resources.AboutResources"; final ResourceBundle resources = ResourceBundleWrapper.getBundle( baseName); this.nameColumnLabel = resources.getString( "system-properties-table.column.name"); this.valueColumnLabel = resources.getString( "system-properties-table.column.value"); }
this.resources = ResourceBundleWrapper.getBundle(baseName);
/** * 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.resources = ResourceBundleWrapper.getBundle(baseName);
/** * 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); }
final ResourceBundle resources = ResourceBundleWrapper.getBundle( baseName);
this.resources = ResourceBundleWrapper.getBundle(baseName);
final ResourceBundle resources = ResourceBundleWrapper.getBundle( baseName);
this.resources = ResourceBundleWrapper.getBundle(baseName);
final ResourceBundle resources = ResourceBundleWrapper.getBundle( baseResourceClass);
final ResourceBundle resources = ResourceBundleWrapper.getBundle( baseResourceClass);