Results 1 to 3 of 3
  1. #1
    Taiko is offline Member
    Join Date
    Jan 2010
    Location
    Opava, Czech Republic
    Posts
    14
    Rep Power
    0

    Question InitialDelay is 2sec, but Tooltip texts appear immediately, when moving mouse quickly

    Hi,

    I have a lot of components which have set tooltip texts. I'm using simple:

    Java Code:
         setToolTipText("something");
    But showing of this tooltips doesn't behave like I want. When I hover mouse cursor on some component, a tooltip text appears after two seconds.

    I'm using:
    Java Code:
         ToolTipManager.sharedInstance().setInitialDelay(2000);
    But, when I move the mouse on another component, the first tooltip disappears (still no problem), BUT a tooltip text of the another component APPEARS IMMEDIATELY and not after another 2 seconds! That's my problem.

    I want the tooltip text to hide, when I move the mouse cursor from the first component (it is working), AND I want another tooltip texts NOT TO appear, until 2 seconds elapse.

    How to do this?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

    Default

    Have you tried tweaking the values of the other delay values, notably the reshow delay?

    db

  3. #3
    Taiko is offline Member
    Join Date
    Jan 2010
    Location
    Opava, Czech Republic
    Posts
    14
    Rep Power
    0

    Default

    Quote Originally Posted by Darryl.Burke View Post
    Have you tried tweaking the values of the other delay values, notably the reshow delay?

    db
    Yes, but I had to do some mistakes or what, because it didn't have desired effect.

    But now, I have tried it again and it works! :eek:

    I have set the reshowDelay to 0 miliseconds, but sometimes the tooltips behave same as before. Hmm, so, maybe I'm just too fast :D

    Thank you.

Similar Threads

  1. Mouse Listener for mouse floating over object?
    By Krooger in forum AWT / Swing
    Replies: 1
    Last Post: 11-18-2009, 04:34 AM
  2. Replies: 3
    Last Post: 12-21-2008, 08:22 PM
  3. color texts
    By layst in forum New To Java
    Replies: 1
    Last Post: 10-22-2008, 02:47 PM
  4. quickly IDE
    By tascoa in forum New To Java
    Replies: 1
    Last Post: 10-16-2008, 02:37 PM
  5. passively and quickly capturing request/response
    By sideswipe091976 in forum Networking
    Replies: 1
    Last Post: 07-10-2008, 01:01 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •