views:

35

answers:

2

How do I make a tooltip of a toolbar button (which is based on the same Action as a menu item) show the accelerator at the right?

A: 

You can use HTML in your tool tip, like this:

setToolTipText("<html><u>" + acceleratorKey + "</u></html>");
Catalina Island
+1  A: 

see Accelerate JToolbar Tooltips

Santhosh Kumar T
Hi Santhosh, thanks -- for the answer and your excellent blog.
mklhmnn