ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chr...@apache.org
Subject cvs commit: jakarta-ant-antidote/src/java/org/apache/tools/ant/gui About.java
Date Mon, 13 Jan 2003 13:12:28 GMT
chrisw      2003/01/13 05:12:28

  Modified:    src/java/org/apache/tools/ant/gui About.java
  Log:
  Show classpath in Info-Tab
  
  Revision  Changes    Path
  1.5       +16 -1     jakarta-ant-antidote/src/java/org/apache/tools/ant/gui/About.java
  
  Index: About.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-antidote/src/java/org/apache/tools/ant/gui/About.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- About.java	4 Jan 2003 10:31:08 -0000	1.4
  +++ About.java	13 Jan 2003 13:12:28 -0000	1.5
  @@ -58,6 +58,8 @@
   
   import java.io.IOException;
   import java.util.Properties;
  +import java.util.StringTokenizer;
  +import java.util.Vector;
   
   import java.awt.Frame;
   import java.awt.BorderLayout;
  @@ -75,6 +77,7 @@
   import javax.swing.JTabbedPane;
   import javax.swing.JScrollPane;
   import javax.swing.JOptionPane;
  +import javax.swing.JList;
   import javax.swing.BorderFactory;
   import javax.swing.table.DefaultTableModel;
   import javax.swing.table.TableColumn;
  @@ -221,6 +224,18 @@
           JScrollPane tableScrollPane = new JScrollPane(clientTable);
           tableScrollPane.setPreferredSize(new Dimension(250, 100));
           infoPanel.add(tableScrollPane, new GridBagConstraints(1, 4, 2, 1, 0, 1.0, GridBagConstraints.WEST,
GridBagConstraints.BOTH, new Insets(1, 6, 2, 6), 0, 0));
  +        
  +        JLabel classpathLabel = new JLabel("Classpath:");
  +        infoPanel.add(classpathLabel, new GridBagConstraints(1, 5, 2, 1, 1.0, 0.0, GridBagConstraints.WEST,
GridBagConstraints.NONE, new Insets(5, 6, 0, 0), 0, 0));
  +
  +        String classFileString = System.getProperty("java.class.path");
  +        Vector pathElements = new Vector();
  +        for(StringTokenizer strTokenizer = new StringTokenizer(classFileString, System.getProperty("path.separator"));
strTokenizer.hasMoreElements(); pathElements.add(strTokenizer.nextElement()));
  +        JList list = new JList(pathElements);
  +        JScrollPane listScrollPane = new JScrollPane(list);
  +        listScrollPane.setPreferredSize(new java.awt.Dimension(100, 80));
  +
  +        infoPanel.add(listScrollPane, new GridBagConstraints(1, 6, 2, 1, 0.0, 0.0, GridBagConstraints.WEST,
GridBagConstraints.BOTH, new Insets(1, 6, 2, 6), 0, 0));
           
           infoPanel.setBorder(BorderFactory.createEmptyBorder(7,7,5,7));
           
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message