java applets

6 Comments

Java program to implement a shape selector from a given set of shapes

To implement a shape selector from a given set of shapes import java.awt.*; import java.awt.event.*; import java.applet.*;   public class shape extend Applet implements itemListener { Chekbox reet,circle,line; ChekboxGroup cbg;   String msg; String s1="reet"; String s2="circle"; string s3="line"; publice void init() { cbg=new checkboxGroup();   rect = new checkbox("reet,cbg,tru); circle = new Checkbox("circle",cbg.false); line […]