Rabu, 18 Januari 2017

How to use graphics class in AWT (java programming)

In GUI applications, we can use Graphics class of java.awt package to create various graphics like lines, rectangles, circles, polygons etc. Let’s look at some of the methods available in the Graphics class: void drawLine(int startX, startY, endX, endY) – Used to draw a line between twi points. void drawRect(int startX, int startY, int width, int height) – Used to draw a rectangle starting from the top left corner with the given width and height. The coordinates of the top left corner of the rectangle are startX and startY. void fillRect(int startX, int startY, int width, int height) – Used to draw a

The post How to use graphics class in AWT (java programming) appeared first on Coding Security.


How to use graphics class in AWT (java programming)
read more

Tidak ada komentar:

Posting Komentar