aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to Implement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to Implement "MicroHelp"?" Watch "How to Implement "MicroHelp"?" New topic
Author

How to Implement "MicroHelp"?

marc bowden
Greenhorn

Joined: May 10, 2001
Posts: 15
Hi
In a swing frontend, each time a user enters a visual component
- eg a jtextfield - I would like to display a help line at the
bottom of the pane/frame/applet or whatever.
Can anyone suggest a good way of doing this. At the moment I
am thinking of each inheriting from their component type and
building in a listener which thru a focus gain event will
set the help text within the component. I am not sure how
to set it, in a generic way, in the visible help line.
Any better ideas, please?
Marc
Ana Mihailescu
Greenhorn

Joined: Apr 26, 2001
Posts: 29
What do you say about some tool tips ?
:-)
marc bowden
Greenhorn

Joined: May 10, 2001
Posts: 15
Hi Ana
No, tooltips aren't appropriate as some of the help text will
be 10-15 words.
Marc
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

If you want to do it the way you described, the easiest thing to do would be to make a mouse listener, and test if the mouse was over a specified component, and then set the text in a textbox in the bottom of the screen or whereever.

Another suggestion is to still use tooltips, but only enable them if the user has a "Help" button depressed on the toolbar or something... I have seen other programs that do context sensetive help this way...

HTH,
-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
John Zukowski
Author
Ranch Hand

Joined: Mar 29, 2001
Posts: 88
Use tooltips, but change the tool tip renderer to display in the status line.
------------------
John Zukowski Author of "Definitive Guide to Swing for Java 2" and "Java Collections"


John Zukowski Author of <a href="http://www.amazon.com/exec/obidos/ASIN/189311578X/ref=ase_electricporkchop/107-7882751-0234939" target="_blank" rel="nofollow">"Definitive Guide to Swing for Java 2"</a>,<br /><a href="http://www.amazon.com/exec/obidos/ASIN/1893115925/ref%3Dase%5Felectricporkchop/102-5437230-7785719" target="_blank" rel="nofollow">"Java Collections"</a> and <a href="http://www.amazon.com/exec/obidos/ASIN/1893115984/ref%3Dase%5Felectricporkchop/102-5437230-7785719" target="_blank" rel="nofollow">"Learn Java with JBuilder 6"</a>
marc bowden
Greenhorn

Joined: May 10, 2001
Posts: 15
Originally posted by John Zukowski:
Use tooltips, but change the tool tip renderer to display in the status line.

Hi John
Thanks. Could you tell me how to do this please?
Marc
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Implement "MicroHelp"?