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 offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,663
    Blog Entries
    7
    Rep Power
    21

    Default Re: Tooltip Text timer

    Did you read what a ToolTipManager can do for you?

    kind regarrds,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  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 offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,663
    Blog Entries
    7
    Rep Power
    21

    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
    cenosillicaphobia: the fear for an empty beer glass

  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-05-2010, 12:15 AM
  2. Tooltip text showing through panel
    By Glovergg in forum AWT / Swing
    Replies: 2
    Last Post: 06-11-2010, 08:25 AM
  3. Working with Tooltip Text
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-26-2008, 08:41 PM
  4. Tooltip
    By Preethi in forum New To Java
    Replies: 5
    Last Post: 06-11-2008, 12:37 PM
  5. Replies: 0
    Last Post: 04-04-2008, 03: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
  •