ok i want to have a JPanel overriding paintComponent added to a JFrame...
Basically i want a 'Shape' with tooltips. But it doesnt seem to have tooltips. I tried to have a oject that overrides JCOmpoonent and override the paintComponent(Graphics g) method and place that into the JPanel somewhere and than add it to the JFrame. The object appears but does not have tooltips roba
Joined: Jul 27, 2006
You can draw custom graphics onto a JLabel or a JButton by virtue of the Icon APIs, with no problems, and it will often be faster than paintComponent, and not need to be done on the EDT.