[gui] Patch: javax.swing.text
Michael Koch
konqueror@gmx.de
Fri Aug 27 00:27:00 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I commited the attached patch in preparation for the caret support and
to fix tab stop handling in JTextField.
Michael
2004-08-25 Michael Koch <konqueror@gmx.de>
* javax/swing/text/AbstractDocument.java
(createBranchElement): Use new constructor of BranchElement.
(createLeafElement): Renamed arguments.
(getRootElements): Implemented.
(BranchElement.start): Removed.
(BranchElement.end): Likewise.
(BranchElement.BranchElement): Fixed arguments.
(BranchElement.getEndOffset): Reimplemented.
(BranchElement.getStartOffset): Likewis.
* javax/swing/text/DefaultCaret.java
(paint): Draw simple vertical line as caret instead of a rectangle.
* javax/swing/text/JTextComponent.java
(setText): Use doc directly.
* javax/swing/text/PlainView.java
(nextTabStop): Implemented.
* javax/swing/text/Utilities.java
(drawTabbedText): nextTabStop() returns an absolute x position.
(getTabbedTextWidth): Likewise.
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBLI2CWSOgCCdjSDsRAsMoAJ99DUHl85KqUO/WOjnW8VBuGUEcyACgjP9x
NMH98DRV/IVYkGwY7IPvrnc=
=/RC9
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: text.diff
Type: text/x-diff
Size: 5902 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040827/83bc4734/attachment.bin>
More information about the Java-patches
mailing list