Thursday, October 11, 2012

component class methods mouseEnter,mouseExit and action used with applet


Step 1:Create a java source file with name MyButton.java that is name of java class and it is mandatory that classname and filename must be same.
Applet class must be public.

Step 2:run cmd(command prompt) and compile java source file, MyButton.class file'll be build.

then give appletviewer command and applet will pop out.
Download Code Link 1
Download Code Link 2
output:

No comments:

Popular Posts