Digital clock in Applet

Example

Flash Soon


In the above example, getX() and getY() method of MouseEvent is used to get the current x-axis and y-axis. The getGraphics() method of Component class returns the object of Graphics.

myapplet.html

Flash Soon



Advertisement

Copyright ©2017 Design& develop