Create the partial Java AWT applet code segment to draw the following: (a) A rectangle that has a left-top at $(10,10)$ and has a width 60 and height 50
Explanation
The drawRect method is used to draw a rectangle. The parameters are the x and y coordinates of the top-left corner, and the width and height of the rectangle.
โฌ Related Topic
๐ Syllabus
View KERALA UNIVERSITY Class 5 Syllabus โ
๐ Practice Questions
Practice Previous Year Questions โ
๐ค Practice with AI
Generate Practice Question Paper โ
๐ Related Concepts
- Write an assembly language program in 8051 microcontroller to create square wave of $50 \%$ duty cycle on bit 0 of port
- Define a process. Give the commands for create and terminate process. ..... 4
- (b) Create three objects of class STRING $\mathrm{si}, \mathrm{si}, \mathrm{si}$ as shown below : STRING s1 = "UNIVERSI
- Write the HTML code to create a link to the web page having URL as : www.festivals.com/india/diwali.html The mentioned w
- Read the following text : 1 Creativity is our most precious resource and the most inexhaustible one. As anyone who has e