Awt-windows-graphics and text


Question 1: State whether the given statement are true or false:

a) The setColor( ) method sets the background color of canvas.

b) The new keyword is employed to make a graphics object.

c) Graphics class methods must be used in the init( ) method of the applet.

d) The getFont( ) method returns the present font.

Question 2: Answer the given questions:

a) Illustrate the difference between checkbox and checkbox group classes?

b) Define the term canvas, panel and container. Determine the similarities and dissimilarities, if any.

Question 3: Write down an applet which displays a string in blue against the green background. Then reset the original background and foreground colors and display the string again. As well find out the amount of red, green and blue colors in the foreground color.

Question 4: Find out the font name, size and style of the string and change font to the TimesNewRoman, 28, bold and italicized.

Question 5: Make the given figures:

a) A line from (10, 10), to (50, 50).

b) A rectangle of width and height 40 pixels correspondingly from (10, 10).

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Awt-windows-graphics and text
Reference No:- TGS08771

Expected delivery within 24 Hours