ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meta...@locus.apache.org
Subject cvs commit: jakarta-ant/src/antidote/org/apache/tools/ant/gui/customizer StringArrayPropertyEditor.java StringPropertyEditor.java
Date Thu, 16 Nov 2000 22:59:35 GMT
metasim     00/11/16 14:59:35

  Modified:    src/antidote/org/apache/tools/ant/gui/customizer
                        StringArrayPropertyEditor.java
                        StringPropertyEditor.java
  Log:
  Fixed string editor so that it property handled multi-line strings.
  
  Revision  Changes    Path
  1.2       +5 -2      jakarta-ant/src/antidote/org/apache/tools/ant/gui/customizer/StringArrayPropertyEditor.java
  
  Index: StringArrayPropertyEditor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/customizer/StringArrayPropertyEditor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StringArrayPropertyEditor.java	2000/11/11 04:54:04	1.1
  +++ StringArrayPropertyEditor.java	2000/11/16 22:59:35	1.2
  @@ -54,24 +54,27 @@
   package org.apache.tools.ant.gui.customizer;
   
   import javax.swing.*;
  +import javax.swing.border.BevelBorder;
   import java.awt.Component;
   import java.util.StringTokenizer;
   
   /**
    * Custom property editor for String arrays.
    * 
  - * @version $Revision: 1.1 $ 
  + * @version $Revision: 1.2 $ 
    * @author Simeon Fitch 
    */
   public class StringArrayPropertyEditor extends AbstractPropertyEditor {
  -    private JTextField _widget = null;
  +    private JTextPane _widget = null;
   
       /** 
        * Default ctor.
        * 
        */
       public StringArrayPropertyEditor() {
  -        _widget = new JTextField();
  +        _widget = new JTextPane();
  +        _widget.setBorder(
  +            BorderFactory.createBevelBorder(BevelBorder.LOWERED));
           _widget.addFocusListener(new FocusHandler(this));
       }
   
  
  
  
  1.2       +6 -3      jakarta-ant/src/antidote/org/apache/tools/ant/gui/customizer/StringPropertyEditor.java
  
  Index: StringPropertyEditor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/customizer/StringPropertyEditor.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StringPropertyEditor.java	2000/11/10 20:41:17	1.1
  +++ StringPropertyEditor.java	2000/11/16 22:59:35	1.2
  @@ -55,23 +55,26 @@
   
   import javax.swing.*;
   import java.awt.Component;
  +import javax.swing.border.BevelBorder;
   
   /**
    * Custom property editor for string types.
    * 
  - * @version $Revision: 1.1 $ 
  + * @version $Revision: 1.2 $ 
    * @author Simeon Fitch 
    */
   public class StringPropertyEditor extends AbstractPropertyEditor {
  -    private JTextField _widget = null;
  +    private JTextPane _widget = null;
   
       /** 
        * Default ctor.
        * 
        */
       public StringPropertyEditor() {
  -        _widget = new JTextField();
  +        _widget = new JTextPane();
           _widget.addFocusListener(new FocusHandler(this));
  +        _widget.setBorder(
  +            BorderFactory.createBevelBorder(BevelBorder.LOWERED));
       }
   
       /** 
  
  
  

Mime
View raw message