This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gui] Patch: javax.swing.JTextArea
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Sat, 10 Jul 2004 14:18:56 +0200
- Subject: [gui] Patch: javax.swing.JTextArea
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I just commited the attached patch to add one property and two missing
methods to JTextArea.
Michael
2004-07-10 Michael Koch <konqueror@gmx.de>
* javax/swing/JTextArea.java
(tabSize): New field.
(getTabSize): New method.
(setTabSize): Likewise.
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFA796wWSOgCCdjSDsRAiQ8AJ9YyyMBU5pMzwKfhKVdGJ4pUoMINgCfVFne
5s+C1+MVsNOCdVMM4W8oehs=
=gSVX
-----END PGP SIGNATURE-----
Index: javax/swing/JTextArea.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/JTextArea.java,v
retrieving revision 1.1.2.2
diff -u -b -B -r1.1.2.2 JTextArea.java
--- javax/swing/JTextArea.java 7 Jul 2004 19:14:34 -0000 1.1.2.2
+++ javax/swing/JTextArea.java 10 Jul 2004 12:14:31 -0000
@@ -49,6 +49,7 @@
private int rows;
private int columns;
private boolean wrapping;
+ private int tabSize = 8;
/**
* Creates a new <code>JTextArea</code> object.
@@ -229,4 +230,15 @@
firePropertyChange("lineWrap", wrapping, flag);
wrapping = flag;
}
+
+ public int getTabSize()
+ {
+ return tabSize;
+ }
+
+ public void setTabSize(int newSize)
+ {
+ firePropertyChange("tabSize", tabSize, newSize);
+ tabSize = newSize;
+ }
}