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.


Download Code Link 1
Download Code Link 2 

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.



Output:

More Applet Topics :

No comments: