posted 15 years ago
Wanted to make a car class. Various different cars so it extends vehicle. I want a JFrame and a JPanel or JComponent in the center of it.
I think i need to extend JCoponent on vehicle so it has tooltips
public class Vehicle extends JComponent{}
but when i override JPanel and create vehicle objects by overriding paintComponent(Graphics){} it does display tooltips when viewing the JFrame that the JPanel is added to.
i think the add() method is only way to use tooltips not paint methods but...
How can i make a Shape object with tooltips than???
roba