Applet programs

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

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 […]

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

Java program to implement a Color Section from a given set of Color.

Java program to implement a Color Section from a given set of Color.

To implement a Color Section from a given set of Color. import java.awt*; import java.awt.event.*; import java.applet.*;   public class fillcolor extends Applet implement Item Listener { checkbox red,yellow,black,blue.orange; CheckboxGroup cbg; String msg; String s1="red"; String s2="yellow"; String s3="black"; String s4="orange"; public void init() { cbg = new CheckboxGroup(); red = new Chechbox("red",cbg,true); yellow= new […]

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

Java applet program for calculator

Java applet program for calculator

Write a Java program that works as a simple calculator. Use a grid layout to arrange buttons for the digits and for the + – * % operations.Add a text field to display the result.

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

Java applet program for interest rate calculation

Java applet program for interest rate calculation

Write a Java program that computes the payment of a loan based on the amount of the loan, the interest rate and the number of months. It takes one parameter from the browser: Monthly rate;if true, the interest rate is per month; Otherwise the interest rate is annual.

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone