-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
None
-
Affects Version/s: 6u10
-
Component/s: client-libs
-
x86
-
windows_xp
FULL PRODUCT VERSION :
java version "1.6.0_12-ea"
Java(TM) SE Runtime Environment (build 1.6.0_12-ea-b03)
Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
"postTip" action is not registered in ToolTipManager, when input map of the registred component is empty, espcecially in JTable.
It causes difficulty to show the tooltip using "postTip" action.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
JTable table = new JTable();
Press Ctrl+F1 - no tooltip is shown.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
When I have normal JTable in my application and when I have pressed Ctrl+F1, I expect, that thew tooltip will be shown like in some other components.
ACTUAL -
No tooltip is shown in JTable, when Ctrl+F1 is pressed.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
No error message.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
JTable table = new JTable();
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
JTable table = new JTable() {
@Override
protected void initializeLocalVars() {
getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke(KeyEvent.VK_F1,Event.CTRL_MASK), "postTip");
super.initializeLocalVars();
}
};
SUPPORT :
YES
java version "1.6.0_12-ea"
Java(TM) SE Runtime Environment (build 1.6.0_12-ea-b03)
Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
"postTip" action is not registered in ToolTipManager, when input map of the registred component is empty, espcecially in JTable.
It causes difficulty to show the tooltip using "postTip" action.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
JTable table = new JTable();
Press Ctrl+F1 - no tooltip is shown.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
When I have normal JTable in my application and when I have pressed Ctrl+F1, I expect, that thew tooltip will be shown like in some other components.
ACTUAL -
No tooltip is shown in JTable, when Ctrl+F1 is pressed.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
No error message.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
JTable table = new JTable();
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
JTable table = new JTable() {
@Override
protected void initializeLocalVars() {
getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke(KeyEvent.VK_F1,Event.CTRL_MASK), "postTip");
super.initializeLocalVars();
}
};
SUPPORT :
YES