aspose file tools
The moose likes Swing / AWT / SWT / JFace and the fly likes Swing/ToolTipText Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "Swing/ToolTipText" Watch "Swing/ToolTipText" New topic
Author

Swing/ToolTipText

MariaJones
Greenhorn

Joined: Sep 07, 2001
Posts: 1
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

Joined: May 16, 2001
Posts: 103
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

Joined: Jun 03, 2000
Posts: 5040

"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

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
MariaJonesRahul
Greenhorn

Joined: Sep 08, 2001
Posts: 1
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

Joined: Sep 08, 2001
Posts: 5
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

Joined: Jul 07, 2001
Posts: 60
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.
 
 
subject: Swing/ToolTipText
 
Threads others viewed
ToolTipText
ToolTipText
ToolTipText
ToolTipText
TooltipText on click
developer file tools