[gui][patch] various fixes in swing text painting
graydon hoare
graydon@redhat.com
Thu Nov 11 08:01:00 GMT 2004
hi,
this patch improves the swing text components' ability to cope with
focus transfers, caret movement, and the painting of multiple lines and
tabs in general. I've committed it to java-gui-branch.
-graydon
2004-11-11 Graydon Hoare <graydon@redhat.com>
* javax/swing/plaf/basic/BasicTextUI.java:
Listen to focus events, indicate focus via caret.
* javax/swing/text/GapContent.java (getString): Return substring.
* javax/swing/text/PlainDocument.java (reindex): New method.
(createDefaultRoot): Call it.
(insertUpdate): Likewise.
(removeUpdate): Likewise.
* javax/swing/text/Utilities.java (drawTabbedText): Always advance
on tab and newline, even if no painting happens.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: java-gui-text-fixes.patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20041111/de125efa/attachment.ksh>
More information about the Java-patches
mailing list