/[classpath]/classpath/javax/swing/JTextArea.java
ViewVC logotype

Diff of /classpath/javax/swing/JTextArea.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by mark, Sat Jun 26 16:07:01 2004 UTC revision 1.2 by mark, Thu Jul 22 19:45:39 2004 UTC
# Line 49  public class JTextArea extends JTextComp Line 49  public class JTextArea extends JTextComp
49    private int rows;    private int rows;
50    private int columns;    private int columns;
51    private boolean wrapping;    private boolean wrapping;
52      private int tabSize = 8;
53    
54    /**    /**
55     * Creates a new <code>JTextArea</code> object.     * Creates a new <code>JTextArea</code> object.
# Line 224  public class JTextArea extends JTextComp Line 225  public class JTextArea extends JTextComp
225     *     *
226     * @param wrapping true to enable line wrapping, false otherwise     * @param wrapping true to enable line wrapping, false otherwise
227     */     */
228    public void setLineWrap(boolean wrapping)    public void setLineWrap(boolean flag)
229    {    {
230      this.wrapping = wrapping;      if (wrapping == flag)
231          return;
232    
233        boolean oldValue = wrapping;
234        wrapping = flag;
235        firePropertyChange("lineWrap", oldValue, wrapping);
236      }
237    
238      public int getTabSize()
239      {
240        return tabSize;
241      }
242    
243      public void setTabSize(int newSize)
244      {
245        if (tabSize == newSize)
246          return;
247        
248        int oldValue = tabSize;
249        tabSize = newSize;
250        firePropertyChange("tabSize", oldValue, tabSize);
251    }    }
252  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26