Results 1 to 6 of 6
  1. #1
    rvd1ofakind is offline Member
    Join Date
    Feb 2012
    Posts
    9
    Rep Power
    0

    Default Tooltip Text timer

    How do i stop the tooltip text from disappearing after a while?

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,044
    Blog Entries
    7
    Rep Power
    23

    Default Re: Tooltip Text timer

    Did you read what a ToolTipManager can do for you?

    kind regarrds,

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

  3. #3
    rvd1ofakind is offline Member
    Join Date
    Feb 2012
    Posts
    9
    Rep Power
    0

    Default Re: Tooltip Text timer

    1. Had no idea what that is
    2. It's confusing and i don't know how to use it. I think mouse events have to do something with it, or am i wrong. I just started learning java, like a week ago so =/.

  4. #4
    rvd1ofakind is offline Member
    Join Date
    Feb 2012
    Posts
    9
    Rep Power
    0

    Default Re: Tooltip Text timer

    I found this on google. But for some reason ToolTipManager gives me "ToolTipManager cannot be sesolved" errors.

    // Get current delay
    int dismissDelay = ToolTipManager.sharedInstance().getDismissDelay();

    // Keep the tool tip showing
    dismissDelay = Integer.MAX_VALUE;
    ToolTipManager.sharedInstance().setDismissDelay(di smissDelay);

  5. #5
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,044
    Blog Entries
    7
    Rep Power
    23

    Default Re: Tooltip Text timer

    Quote Originally Posted by rvd1ofakind View Post
    I found this on google. But for some reason ToolTipManager gives me "ToolTipManager cannot be sesolved" errors.
    I bet you forgot to import that class in your code. Read the API documentation and see what package it's in, so you know what to import.

    kind regards,

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

  6. #6
    rvd1ofakind is offline Member
    Join Date
    Feb 2012
    Posts
    9
    Rep Power
    0

Similar Threads

  1. Stopping a Timer from Inside the timer
    By krishnan in forum Java Applets
    Replies: 2
    Last Post: 10-04-2010, 11:15 PM
  2. Tooltip text showing through panel
    By Glovergg in forum AWT / Swing
    Replies: 2
    Last Post: 06-11-2010, 07:25 AM
  3. Working with Tooltip Text
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-26-2008, 07:41 PM
  4. Tooltip
    By Preethi in forum New To Java
    Replies: 5
    Last Post: 06-11-2008, 11:37 AM
  5. Replies: 0
    Last Post: 04-04-2008, 02:46 PM

Posting Permissions

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