-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.2.0, 1.3.0
-
generic, x86
-
generic, windows_nt
Name: krT82822 Date: 08/27/99
I'm playing with NetBeans 3.0 Beta application. It is a huge Pure Java 1.2
application (www.netbeans.com).
It is a good test case for JDK 1.2
compatability.
It works well under JDK 1.3beta except of tooltips.
Tooltips
of toolbar buttons just disapear after short flash.
Under Java 1.2 it works fine.
You can download this application from thir website.
Hope it helps you.
-----------
8/27/99 eval1127@eng -- user notes that NO tooltips work in NetBeans 3.0 beta. Same behavior with/without HotSpot enabled. FIling new bug. User has agreed to
also file a report with NetBeans, since it's not clear this is our bug yet. Thus, am setting it as less severe -- till we hear whether this can be fixed by NetBeans alone.
(Review ID: 94533)
======================================================================
Name: skT88420 Date: 10/04/99
1. I was trying to make a simple Frame window it 1 JButton, and
a ToolTip on that JButton. It was ok when the ToolTip was LightWeight.
But when I tried to make a ToolTip become HeavyWeight, I used:
ToolTipManager ttm = ToolTipManager.sharedInstance();
ttm.setLightWeightPopupEnabled(false);
When I compiled it using jdk1.3beta, I had got deprecated warning
about setLightWeightPopupEnabled(boolean),
but when I checked the jdk1.3beta doc, it did not say anything
about that deprecated warning. It appeared in jdk1.2.2 doc and
it said replaced by setToolTipWindowUsePolicy(int), but I could not find
that method anywhere from the documentation????
At least the program compiled successful, so I ran it:
java SimpleFrame
The window frame appeared, the button appeared, but when I moved
the mouse pointer to the button, the ToolTip started to appear and
disappear again and again, (not refreshing properly).
Since this is a beta version, I checked my program using some older
jdk, such as jdk1.2 and jdk1.2.2. They all performed fine, not a
problem. Even when I made the ToolTip back to LightWeight, the
jdk1.3beta could also display the ToolTip correctly.
2. Source Code:
import javax.swing.*;
import java.awt.*;
public class SimpleFrame extends JFrame
{
public SimpleFrame()
{
super();
setSize(100, 60);
ToolTipManager ttm = ToolTipManager.sharedInstance();
ttm.setLightWeightPopupEnabled(false);
JButton button1 = new JButton("Button 1");
button1.setToolTipText("display 1");
getContentPane().setLayout(new FlowLayout());
getContentPane().add(button1);
show();
}
public static void main(String[] args)
{
SimpleFrame sf = new SimpleFrame();
}
}
3. No error message.
4. The jdk1.3beta documentation does not say setLightWeightPopupEnabled(boolean)
is deprecated.
5.
D:>java -fullversion
java full version "1.3beta-O"
D:>java -version
java version "1.3beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3beta-O)
Java(TM) HotSpot Client VM (build 1.3beta-O, mixed mode)
D:\WINNT\Profiles\keska\Personal\Site>
(Review ID: 96083)
======================================================================
- duplicates
-
JDK-4266466 Tooltips don't work correctly in NetBeans 3.0 beta with kestrel-beta
-
- Closed
-
-
JDK-4139679 getToolTipLocation on JLabel to set location over label causes tip to flash
-
- Closed
-
-
JDK-4360567 Heavyweight tooltips don't work in 1.3-RC, Regression from 1.2 and 1.2.1
-
- Closed
-