![]() ![]() ![]() JFrame frame = new JFrame( "My Drawing") Here is an example program that draws a circle using the fillOval method: import The Graphics class provides basic drawing methods such as drawLine, drawRect, and drawString. There are several ways to create graphics in Java the simplest way is to use and .Ī Canvas is a blank rectangular area of the screen onto which the application can draw. We are only going to scratch the surface of graphics programming you can read more about it in the Java tutorials at. ![]() The Java library includes a simple package for drawing 2D graphics, called java.awt.ĪWT stands for “Abstract Window Toolkit”.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |