Article View: borland.public.jbuilder.java.swing
Article #13208Problems with Tooltips
From: Keith C. Herold
Date: Thu, 03 Sep 1998 00:00
Date: Thu, 03 Sep 1998 00:00
47 lines
2415 bytes
2415 bytes
I recently switched from Swing 1.0.1 to 1.0.3 and now my tooltips are
not working properly. When they should activate I get the following:
Exception occurred during event dispatching:
java.lang.NullPointerException
at
com.sun.java.swing.ToolTipManager$JPanelPopup.show(Compiled Code)
at com.sun.java.swing.ToolTipManager.showTipWindow(Compiled
Code)
at
com.sun.java.swing.ToolTipManager$insideTimerAction.actionPerformed(Compiled
Code)
at com.sun.java.swing.Timer.fireActionPerformed(Compiled
Code)
at com.sun.java.swing.Timer$DoPostEvent.run(Compiled Code)
at
com.sun.java.swing.SystemEventQueueUtilities.processRunnableEvent(Compiled
Code)
at
com.sun.java.swing.SystemEventQueueUtilities.access$0(Compiled Code)
at
com.sun.java.swing.SystemEventQueusUtilities$RunnableTarger.processEvent(Compiled
Code)
at.java.awt.Component.dispatchEventImpl(Compiled Code)
at.java.awt.Component.dispatchEvent(Compiled Code)
at
java.awt.EventDispatchThread.run(EventDispatchThread.java:81)
I have tried following Richard Wilkman's post on using Swing 1.0.2
(substituting 1.0.3) and got the same error, as well as simply creating
a new Library and pointing it to the swing1.0.3 directory. I still get
the same error.
The error also is intermittent. With certain controls it is always
consistent; with others that sometimes correctly display the tip,
looking at certain controls that do not work and then at one which does
work causes the error. If I look at one that always works, then the
ones that sometimes display will work.
What is happening?
I have noticed what appear to be other intermittent errors with JB2
(sometimes controls can't be resized/moved unless it is deleted and then
replaced (Jtextarea)). Has anyone else?
Thanks,
Keith
Technical Details
Message-ID:
<35EF3759.EA136897@seclab.cs.ucdavis.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,ec131d6639cf00e1,start X-Google-Attributes: gid111d45,public From: "Keith C. Herold" <herold@seclab.cs.ucdavis.edu> Subject: Problems with Tooltips Date: 1998/09/03 Message-ID: <35EF3759.EA136897@seclab.cs.ucdavis.edu> X-Deja-AN: 387673968 Content-Transfer-Encoding: 7bit Organization: UC Davis CS Security Lab Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing