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.
It's also Graphics in Java. (Surprise!)
Sometimes you need to cast the object to Graphics2D for more advanced graphics manipulations.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.