Reputation: 339
In a C# Windows form, there is a Graphics object which is used to draw images and shapes directly to the form. What is the equivalent in Java?
In case my question isn't clear enough, I wish to draw to a form in Java like I would in C#. I am aware of Applets and JApplets, but I want to do this in an actual form and not in a browser.
Upvotes: 0
Views: 1095
Reputation: 18018
The Graphics Class in Java: http://download.oracle.com/javase/1.4.2/docs/api/java/awt/Graphics.html
Upvotes: 1
Reputation: 210402
It's also Graphics in Java. (Surprise!)
Sometimes you need to cast the object to Graphics2D for more advanced graphics manipulations.
Upvotes: 2