Link to home
Start Free TrialLog in
Avatar of jstakk
jstakkFlag for Norway

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?
ASKER CERTIFIED SOLUTION
Avatar of ksivananth
ksivananth
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mick Barry
you would typically subclass a JPanel to do custom painting