Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/eireneh/swing/SystemPropertiesPane.java


1   
2   package com.eireneh.swing;
3   
4   import java.awt.*;
5   import javax.swing.*;
6   
7   import com.eireneh.swing.*;
8   import com.eireneh.swing.data.*;
9   
10  /**
11   * SystemPropertiesPane displays the current values of the properties
12   * file as returned by <code>System.getProperties();</code>.
13   *
14   * <table border='1' cellPadding='3' cellSpacing='0' width="100%">
15   * <tr><td bgColor='white'class='TableRowColor'><font size='-7'>
16   * Distribution Licence:<br />
17   * Project B is free software; you can redistribute it
18   * and/or modify it under the terms of the GNU General Public License,
19   * version 2 as published by the Free Software Foundation.<br />
20   * This program is distributed in the hope that it will be useful,
21   * but WITHOUT ANY WARRANTY; without even the implied warranty of
22   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23   * General Public License for more details.<br />
24   * The License is available on the internet
25   * <a href='http://www.gnu.org/copyleft/gpl.html'>here</a>, by writing to
26   * <i>Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
27   * MA 02111-1307, USA</i>, Or locally at the Licence link below.<br />
28   * The copyright to this program is held by it's authors.
29   * </font></td></tr></table>
30   * @see <a href='http://www.eireneh.com/servlets/Web'>Project B Home</a>
31   * @see docs.Licence
32   * @author Joe Walker
33   */
34  public class SystemPropertiesPane extends EirPanel
35  {
36      /**
37       * Basic Constructor
38       */
39      public SystemPropertiesPane()
40      {
41          jbInit();
42      }
43  
44      /**
45       * Build the GUI
46       */
47      private void jbInit()
48      {
49          scr_props.getViewport().add(tbl_props, null);
50          tbl_props.setModel(mdl_props);
51  
52          this.setLayout(new BorderLayout());
53          this.add(scr_props, BorderLayout.CENTER);
54      }
55  
56      /**
57       * Show this compnent in a new dialog;
58       */
59      public void showInDialog(Component parent)
60      {
61          showInDialog(parent, "System Properties", true);
62      }
63  
64      /* GUI Components */
65      private HashtableTableModel mdl_props = new HashtableTableModel(System.getProperties());
66      private JScrollPane scr_props = new JScrollPane();
67      private JTable tbl_props = new JTable();
68  }