|
|
|
|
|
|
|
|
|
|
|
|
|
|
JAVA APPLET
Using drawRect() and fillRect() method Rectangle are drawn by the drawLine() and fillRect() method, an outlined and filled rectangle respectively The drawRect() method shown here void drawRect(int top, int left, int width, int height) The fillRect() method shown here void fillRect(int top, int left, int width, int height) The drawRoundRect() method shown here void drawRoundRect(int top, int left, int width, int height, int xDiam, int yDiam) The fillRoundRect() method shown here void drawRoundRect(int top, int left, int width, int height, int xDiam, int yDiam) Here is a program to draw several rectangles on an applet
|
||||||||
|
|