/** * 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 = ResourceBundle.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"); }
/** * 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"); }
/** * Sorts on the specified column. * * @param column the column index. * @param ascending a flag that controls the sort order. * */ public void sortByColumn(final int column, final boolean ascending) { if (isSortable(column)) { super.sortByColumn(column, ascending); Collections.sort(this.properties, new SystemPropertyComparator(ascending)); } }
/** * Sorts on the specified column. * * @param column the column index. * @param ascending a flag that controls the sort order. * */ public void sortByColumn(final int column, final boolean ascending) { if (isSortable(column)) { super.sortByColumn(column, ascending); Collections.sort(this.properties, new SystemPropertyComparator(ascending)); } }
/** * Sorts on the specified column. * * @param column the column index. * @param ascending a flag that controls the sort order. * */ public void sortByColumn(final int column, final boolean ascending) { if (isSortable(column)) { super.sortByColumn(column, ascending); Collections.sort(this.properties, new SystemPropertyComparator(ascending)); } }