[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] classpath javax/swing/JComponent.java javax/swi...
From: |
Roman Kennke |
Subject: |
[commit-cp] classpath javax/swing/JComponent.java javax/swi... |
Date: |
Sat, 14 Oct 2006 13:23:46 +0000 |
CVSROOT: /cvsroot/classpath
Module name: classpath
Changes by: Roman Kennke <rabbit78> 06/10/14 13:23:45
Modified files:
javax/swing : JComponent.java ToolTipManager.java
. : ChangeLog
Log message:
2006-10-14 Roman Kennke <address@hidden>
PR 27957
* javax/swing/JComponent.java
(toolTipText): Removed field.
(createToolTip): Don't set tooltip text here. This is done
in the ToolTipManager.
(setToolTipText): Set tooltip text as client property.
(getToolTipText): Get tooltip text from client property.
* javax/swing/ToolTipManager.java
(currentComponent): Made field non-static and of type
JComponent.
(currentPoint): Made field non-static.
(currentTip): Made field non-static.
(popup): Made field non-static.
(toolTipText): New field. Stores the current tooltip text.
(checkTipUpdate): New helper method. Checks for updates of
the tooltip text and triggers the appropriate actions.
(getContentPaneDeepestComponent): Removed unneeded casts.
(mouseEntered): Removed unneeded cast. Initially fetch tooltip
text from component.
(mouseMoved): Check for tooltip text updates.
(showTip): Set tooltip text from current setting.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/JComponent.java?cvsroot=classpath&r1=1.146&r2=1.147
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/ToolTipManager.java?cvsroot=classpath&r1=1.33&r2=1.34
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.8681&r2=1.8682