Hi,
I fixed 2 little issues in BasicTextUI that came up when testing jIRCii.
2005-11-14 Roman Kennke <[EMAIL PROTECTED]>
* javax/swing/plaf/basic/BasicTextUI.java
(uninstallListeners): Uninstall the document listener here.
(getVisibleEditorRect): Fetch the textComponent via
getComponent().
/Roman
Index: javax/swing/plaf/basic/BasicTextUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicTextUI.java,v
retrieving revision 1.54
diff -u -r1.54 BasicTextUI.java
--- javax/swing/plaf/basic/BasicTextUI.java 13 Nov 2005 08:52:30 -0000 1.54
+++ javax/swing/plaf/basic/BasicTextUI.java 14 Nov 2005 12:09:11 -0000
@@ -748,6 +748,7 @@
protected void uninstallListeners()
{
textComponent.removeFocusListener(focuslistener);
+ textComponent.getDocument().removeDocumentListener(documentHandler);
}
/**
@@ -1057,6 +1058,7 @@
*/
protected Rectangle getVisibleEditorRect()
{
+ JTextComponent textComponent = getComponent();
int width = textComponent.getWidth();
int height = textComponent.getHeight();
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches