Draw Oval in Applet

drawOval() is the method of a Graphics class.To draw a oval we use drawOval(int xaxis,int yaxis,int widthh, int heightt) method.

Java Graphics in Applet

Graphics operations can be performed using java.awt package that contains various classes and methods for creating graphics and images.The paint() takes graphic object as an argument and provides reference to graphics drawing methods(setColor(),drawstring()).

Implementing the Runnable Interface

The Runnable interface consists of a single method run() which required for implementing thread. We will create a thread and pass the object of the class that implements the Runnable interface as an argument of the Thread class’s constructor. The thread will now be activated by calling the start().

Events and Listeners in Java

The event classes represents the events that are generated when an end user interact with the AWT components. An event is an object which specifies the change of state in the source.

Checkboxes in Java Applet

A Check box is a AWT control that is used to turn an option on(true) or off(false). It consists of a small box that is either selected or unselected based on whether the Boolean argument is true or false.

 

  •  Start 
  •  Prev 
  •  1  2  3  4  5  6  7  8 
  •  Next 
  •  End 

Page 1 of 8

About Us

Rekha SetiaRekha Setia is a passionate blogger of Extra Computer Notes. if you have any ideas or any request me @