Showing posts with the label AppletsShow all

5) Display output Star shape on Applet.

source file name:  AppletStarDisplay.java  /* <applet code=AppletStarDisplay.class width=300 height=300 > </applet > */ import java.awt.*; import java.awt.event.*; import java.applet.*; public class AppletStarDisplay extends Applet { public AppletStarDisplay() { } public void paint(Graphics g) { g.drawLine…

Read more

3) The Sound Applet program

source file name:  AppletSoundProgram.java First download below Sound files.  audiotest DBJ AbhimanGeet  /* <applet code=AppletSoundProgram.class width=300 height=300 > </applet> */ import java.applet.*; import java.awt.*; import java.awt.event.*; public class AppletSoundProgram extends Applet implements …

Read more

1) Program that shows running Applet methods.

source file name: AppletDemo.java  /* <applet code=AppletDemo.class width=300 Height=300 > </applet> */ import java.applet.*; public class AppletDemo extends Applet {   public void init() //initializtion   { System.out.println("init() works ");   }   public void start()  //start or resume exec…

Read more