I have a JMenuItem with a icon set for it. I want to add a tool tip only for this icon. I'm not able to find any solution to it. This is what I've implemented so far.
JMenuItem mnuItem = new JMenuItem(Aaction a);
ImageIconn img = new ImageIcon(String filename);
mnuItem.setIcon(img);
I would like to add a tooltip for just the icon.
Basically @MadProgrammer is right. But some Swing hacks allowed me to find a solution for you. Here is it: