Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing/ToolTipText  RSS feed

 
MariaJones
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sir,
In an application i have tooltiptext for some labels,buttons etc.
If i press abutton i should apply this tooltip for the whole application,if not tooltip should not be set for all these labels & buttons.
How come i would be able to do this.
pl....... give me an idea how to do this.
excepting u'r reply
with regards,
Maria.
 
Ali Hassaan
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maria
can u pls explain ur question little bit..
bcz wat i get is tht u wana set tooltiptext to whole application on button click.But i dont think tht i m getting u right bcz its not tht problem for u after setting tooltiptext once..
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"MariaJones"
your name doesn't agree with the javaranch guidelines.
please take a moment and re-register after reviewing the
guidelines at http://www.javaranch.com/name.jsp
thanks for your cooperation.
- satya
 
MariaJonesRahul
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sir,
Here comes my questions.I have 4 to 5 layers of panels in the layered pane.I have a first optional panel which has a button.If the button is pressed (it sets to ok icon).
If ok is set then the tooltiptext for the components in all the panels added to the layered pane should be set.
If same button is clicked twice (it is set to no icon) & the tooltiptext should not be set.
How is it possible to make tooltiptext null.Give me some idea regarding this how to start.
I think u must have understood my question,Hope to get reply from u soon.
Thanking u
With regards,
Maria.
 
Shaz Ali
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by MariaJonesRahul:
Hello Sir,
Here comes my questions.I have 4 to 5 layers of panels in the layered pane.I have a first optional panel which has a button.If the button is pressed (it sets to ok icon).
If ok is set then the tooltiptext for the components in all the panels added to the layered pane should be set.
If same button is clicked twice (it is set to no icon) & the tooltiptext should not be set.
How is it possible to make tooltiptext null.Give me some idea regarding this how to start.
I think u must have understood my question,Hope to get reply from u soon.
Thanking u
With regards,
Maria.

jLabel1.setToolTipText (null);
this will reset tooltiptext to null means no tooltiptext
 
Sonara Rahul
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sir,
Thanks a lot for u'r reply.But i wanted it to be in different panels.
Say for example:
I am using layeredpane it consists of 5 layers.The preference(true or false -2 buttons) for the tooltip should to be set or not is specified in the first panel.
When the option is selected as true,tooltiptext for all other 4 panels(buttons,labels which have it) should be set.
When the option set is false,tooltiptext shouldn't be set.
How come i control the tooltiptexts to set or unset which is present in panels of different layers of the layered pane.
Pl.. explain me in detailed way.
Waiting for u'r reply,
With regards,
SonaraRahul.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!