jstakk
asked on
Java 2D graphics
I'm working on a GUI using Java Swing. One of the panels needs to contain 2D graphics, using images, drawing some lines, and placing text on exact locations.
My questions are:
* which swing component can I place this graphic in?
* how do I draw lines?
* do I need to override the paint method?
* How do i place text on exact koordinates?
My questions are:
* which swing component can I place this graphic in?
* how do I draw lines?
* do I need to override the paint method?
* How do i place text on exact koordinates?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you would typically subclass a JPanel to do custom painting