Results 1 to 11 of 11
  1. #1
    dbashby's Avatar
    dbashby is offline Senior Member
    Join Date
    Mar 2009
    Posts
    223
    Rep Power
    6

    Question Tool tips - Netbeans 6.5

    I have all the tooltips working but the positioning of them is not that good, is it possible to have them appear where you want, the problem I have is that the tool tip opens up about a centimeter away from where it should be indicating, I would prefer that it opened just above it

    Can this be done?

    Thanks in advance

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    I think it's appear on the edge of the cursor in default. And also on the component area you mouse hoover.

  3. #3
    dbashby's Avatar
    dbashby is offline Senior Member
    Join Date
    Mar 2009
    Posts
    223
    Rep Power
    6

    Default

    So your saying that it is not possible to relocate them?

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  6. #6
    dbashby's Avatar
    dbashby is offline Senior Member
    Join Date
    Mar 2009
    Posts
    223
    Rep Power
    6

    Question Netbeans 6.5 tooltips, depending on selection

    I have all my tooltips working and they are in required locations however,

    I have two textfields, 1 is for height and one is for weight, they have two radio buttons which let you select either metric measurements or imperial.

    Basically what I want to do is if the user selects metric I want the tooltip to say ' enter your measurements in Cm and Kg' however if the user selects imperial I want the user to see the tooltip 'Enter your measurements in Inches and lb's'

    I have taken a look around and even the netbeans site but I cannot seem to get this working, is this possible I think is my first question?

    :confused:

  7. #7
    markw8500's Avatar
    markw8500 is offline Senior Member
    Join Date
    Jul 2008
    Location
    Pennsylvania, USA
    Posts
    136
    Rep Power
    0

    Default

    Sure... What you will have to do is create a private String and call it say... RadioButtonToolTip...

    Now in your setTooTipText() method use your RadioButtonToolTip String... Now in the actionListener of the radio Buttons you can set the text of your RadioButtonToolTip string... So when the radioButton gets selected, it will set your RadioButtonToolTip to your desired text...

    Also, on a different note, did you ever get your F1 Help menu worked out???
    Who Cares... As Long As It Works...

  8. #8
    dbashby's Avatar
    dbashby is offline Senior Member
    Join Date
    Mar 2009
    Posts
    223
    Rep Power
    6

    Question Tooltips

    Thanks for the information, as for the f1, ermmmm no for the moment I gave up on that, I couldnt make sense of what I needed to do.

    I will let you know when or IF I get the tooltip as I want it....lol

    Thanks again

    :D

  9. #9
    markw8500's Avatar
    markw8500 is offline Senior Member
    Join Date
    Jul 2008
    Location
    Pennsylvania, USA
    Posts
    136
    Rep Power
    0

    Default

    No Prob... Let me know...
    Who Cares... As Long As It Works...

  10. #10
    Singing Boyo is offline Senior Member
    Join Date
    Mar 2009
    Posts
    552
    Rep Power
    6

    Default

    Seems that simply calling setToolTipText within the action would work as well... just an alternate way of changing the ToolTipText, markw8500 had a great suggestion as well
    If the above doesn't make sense to you, ignore it, but remember it - might be useful!
    And if you just randomly taught yourself to program, well... you're just like me!

  11. #11
    markw8500's Avatar
    markw8500 is offline Senior Member
    Join Date
    Jul 2008
    Location
    Pennsylvania, USA
    Posts
    136
    Rep Power
    0

    Default

    Sure... Anybody can do it the easy way...:D
    Last edited by markw8500; 04-25-2009 at 02:22 AM.
    Who Cares... As Long As It Works...

Similar Threads

  1. Replies: 0
    Last Post: 03-26-2009, 04:07 PM
  2. need some derby tips:
    By kulangotski in forum Advanced Java
    Replies: 4
    Last Post: 03-09-2009, 05:09 PM
  3. Need some tips.
    By PVL268 in forum New To Java
    Replies: 4
    Last Post: 02-27-2009, 02:37 PM
  4. First project, need some tips..
    By Komala_aradhya in forum New To Java
    Replies: 1
    Last Post: 08-03-2007, 01:25 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
  •