TermCommentPost For Applets And AWT November 30, -000117 Comments1 Min Read You may also like HashSet Copy all elements of Java HashSet to an Object Array Example December 1, 2011 Sorting Algorithms Java Bubble Sort Descending Order Example December 1, 2011 Java String Examples Java String Reverse Example December 1, 2011 Hashtable Get Size of Java Hashtable Example December 1, 2011 FileOutputStream Append output to file using FileOutputStream December 1, 2011 JLabel Get Horizontal Alignment of JLabel Example December 1, 2011 LinkedHashSet Copy all elements of Java LinkedHashSet to an Object Array Example December 1, 2011 CheckedOutputStream Create Zip File With Adler32 Checksum Example December 1, 2011 Integer Wrapper Class Convert decimal integer to binary number example December 1, 2011 Boolean Wrapper Class Convert Java boolean Primitive to Boolean object December 1, 2011 AWT List Get Selected Items From Multi Select AWT List Example December 1, 2011 AWT Choice Select Particular Item Of AWT Choice Or Combobox Example December 1, 2011 Receive LATEST Java Examples In Your Email Enter your email address below to join 1000+ fellow learners: 17 Comments Cancel reply CommentName * Email * Can you help me how to create a simple calendar using applet ?.. just a simple calendar … because our prof told me to research . please help me 🙂 Reply hi frnds… wait…when i completed your assignment i post here….🙂 Reply good site Reply Good site Reply Ya good site Reply Ys good site Reply Can you help me how to create a simple calendar using applet ?.. just a simple calendar … because our prof told me to research . please help me 🙂 Reply i need to make gradient background ,can you help me? Reply can you help me to create a calculator using awt buttons Reply import java.awt.*; import java.awt.event.*; class Calculator1 implements ActionListener { Frame f=new Frame(); Label l1=new Label(“First Number”); Label l2=new Label(“Second Number”); Label l3=new Label(“Result”); TextField t1=new TextField(); TextField t2=new TextField(); TextField t3=new TextField(); Button b1=new Button(“Add”); Button b2=new Button(“Sub”); Button b3=new Button(“Mul”); Button b4=new Button(“Div”); Button b5=new Button(“Cancel”); Calculator1() { l1.setBounds(50,100,100,20); l2.setBounds(50,140,100,20); l3.setBounds(50,180,100,20); t1.setBounds(200,100,100,20); t2.setBounds(200,140,100,20); t3.setBounds(200,180,100,20); b1.setBounds(50,250,50,20); b2.setBounds(110,250,50,20); b3.setBounds(170,250,50,20); b4.setBounds(230,250,50,20); b5.setBounds(290,250,50,20); f.add(l1); f.add(l2); f.add(l3); f.add(t1); f.add(t2); f.add(t3); f.add(b1); f.add(b2); f.add(b3); f.add(b4); f.add(b5); b1.addActionListener(this); b2.addActionListener(this); b3.addActionListener(this); b4.addActionListener(this); b5.addActionListener(this); f.setLayout(null); f.setVisible(true); f.setSize(400,350); } public void actionPerformed(ActionEvent e) { int n1=Integer.parseInt(t1.getText()); int n2=Integer.parseInt(t2.getText()); if(e.getSource()==b1) { t3.setText(String.valueOf(n1+n2)); } if(e.getSource()==b2) { t3.setText(String.valueOf(n1-n2)); } if(e.getSource()==b3) { t3.setText(String.valueOf(n1*n2)); } if(e.getSource()==b4) { t3.setText(String.valueOf(n1/n2)); } if(e.getSource()==b5) { System.exit(0); } } public static void main(String…s) { new Calculator1(); } } Reply can you please help me how to close a applet window using a button? Reply What is CardLayoutManager? Reply Hi jst got into the world of Applets so happy to have that magical power Reply any one correct my program import java.applet.Applet; import java.awt.*; import java.awt.event.ActionListener; import java.awt.Button; public class Applet2 extends Applet { Button b1=new Button(“click here”); public void init() { b1.addActionListner(new ActionListner() { public void ActionPerformed(Actionevent e) { System.out.println(“Button was clicked”); } }); add(b1); } } Reply write a java program using linear searching algorithm to search for a particular item inside existing array Reply hi Reply write java program using AWT to print “welcome home” with times new roman font with size 16 in red color. when we click on button text color should change to blue Reply Sponsors search example Popular Examples Java String to String Array Example Find Largest and Smallest Number in an Array Example Java String Array Length Example Convert java int to Integer object Example List Even Numbers Java Example Draw Smiley In Applet Example Draw Oval & Circle in Applet Window Example Change Button Background Color Example List Odd Numbers Java Example Copy Elements of One Java ArrayList to Another Java ArrayList Example Facebook Fans Java-Examples.com Recently Commented Examples Java Pyramid 5 Example Declare multiple variables in for loop Example Java Pyramid 6 Example Reverse Number using Java Prime Numbers Java Example Do While loop Example If Else-If statement Example Java Pyramid 1 Example Find Largest and Smallest Number in an Array Example Calculate Circle Area using Java Example
Can you help me how to create a simple calendar using applet ?.. just a simple calendar … because our prof told me to research . please help me 🙂 Reply
Can you help me how to create a simple calendar using applet ?.. just a simple calendar … because our prof told me to research . please help me 🙂 Reply
import java.awt.*; import java.awt.event.*; class Calculator1 implements ActionListener { Frame f=new Frame(); Label l1=new Label(“First Number”); Label l2=new Label(“Second Number”); Label l3=new Label(“Result”); TextField t1=new TextField(); TextField t2=new TextField(); TextField t3=new TextField(); Button b1=new Button(“Add”); Button b2=new Button(“Sub”); Button b3=new Button(“Mul”); Button b4=new Button(“Div”); Button b5=new Button(“Cancel”); Calculator1() { l1.setBounds(50,100,100,20); l2.setBounds(50,140,100,20); l3.setBounds(50,180,100,20); t1.setBounds(200,100,100,20); t2.setBounds(200,140,100,20); t3.setBounds(200,180,100,20); b1.setBounds(50,250,50,20); b2.setBounds(110,250,50,20); b3.setBounds(170,250,50,20); b4.setBounds(230,250,50,20); b5.setBounds(290,250,50,20); f.add(l1); f.add(l2); f.add(l3); f.add(t1); f.add(t2); f.add(t3); f.add(b1); f.add(b2); f.add(b3); f.add(b4); f.add(b5); b1.addActionListener(this); b2.addActionListener(this); b3.addActionListener(this); b4.addActionListener(this); b5.addActionListener(this); f.setLayout(null); f.setVisible(true); f.setSize(400,350); } public void actionPerformed(ActionEvent e) { int n1=Integer.parseInt(t1.getText()); int n2=Integer.parseInt(t2.getText()); if(e.getSource()==b1) { t3.setText(String.valueOf(n1+n2)); } if(e.getSource()==b2) { t3.setText(String.valueOf(n1-n2)); } if(e.getSource()==b3) { t3.setText(String.valueOf(n1*n2)); } if(e.getSource()==b4) { t3.setText(String.valueOf(n1/n2)); } if(e.getSource()==b5) { System.exit(0); } } public static void main(String…s) { new Calculator1(); } } Reply
any one correct my program import java.applet.Applet; import java.awt.*; import java.awt.event.ActionListener; import java.awt.Button; public class Applet2 extends Applet { Button b1=new Button(“click here”); public void init() { b1.addActionListner(new ActionListner() { public void ActionPerformed(Actionevent e) { System.out.println(“Button was clicked”); } }); add(b1); } } Reply
write a java program using linear searching algorithm to search for a particular item inside existing array Reply
write java program using AWT to print “welcome home” with times new roman font with size 16 in red color. when we click on button text color should change to blue Reply
Can you help me how to create a simple calendar using applet ?.. just a simple calendar … because our prof told me to research . please help me 🙂
hi frnds… wait…
when i completed your assignment i post here….
🙂
good site
Good site
Ya good site
Ys good site
Can you help me how to create a simple calendar using applet ?.. just a
simple calendar … because our prof told me to research . please help
me 🙂
i need to make gradient background ,can you help me?
can you help me to create a calculator using awt buttons
import java.awt.*;
import java.awt.event.*;
class Calculator1 implements ActionListener
{
Frame f=new Frame();
Label l1=new Label(“First Number”);
Label l2=new Label(“Second Number”);
Label l3=new Label(“Result”);
TextField t1=new TextField();
TextField t2=new TextField();
TextField t3=new TextField();
Button b1=new Button(“Add”);
Button b2=new Button(“Sub”);
Button b3=new Button(“Mul”);
Button b4=new Button(“Div”);
Button b5=new Button(“Cancel”);
Calculator1()
{
l1.setBounds(50,100,100,20);
l2.setBounds(50,140,100,20);
l3.setBounds(50,180,100,20);
t1.setBounds(200,100,100,20);
t2.setBounds(200,140,100,20);
t3.setBounds(200,180,100,20);
b1.setBounds(50,250,50,20);
b2.setBounds(110,250,50,20);
b3.setBounds(170,250,50,20);
b4.setBounds(230,250,50,20);
b5.setBounds(290,250,50,20);
f.add(l1);
f.add(l2);
f.add(l3);
f.add(t1);
f.add(t2);
f.add(t3);
f.add(b1);
f.add(b2);
f.add(b3);
f.add(b4);
f.add(b5);
b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
b4.addActionListener(this);
b5.addActionListener(this);
f.setLayout(null);
f.setVisible(true);
f.setSize(400,350);
}
public void actionPerformed(ActionEvent e)
{
int n1=Integer.parseInt(t1.getText());
int n2=Integer.parseInt(t2.getText());
if(e.getSource()==b1)
{
t3.setText(String.valueOf(n1+n2));
}
if(e.getSource()==b2)
{
t3.setText(String.valueOf(n1-n2));
}
if(e.getSource()==b3)
{
t3.setText(String.valueOf(n1*n2));
}
if(e.getSource()==b4)
{
t3.setText(String.valueOf(n1/n2));
}
if(e.getSource()==b5)
{
System.exit(0);
}
}
public static void main(String…s)
{
new Calculator1();
}
}
can you please help me how to close a applet window using a button?
What is CardLayoutManager?
Hi jst got into the world of Applets so happy to have that magical power
any one correct my program
import java.applet.Applet;
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.Button;
public class Applet2 extends Applet
{
Button b1=new Button(“click here”);
public void init()
{
b1.addActionListner(new ActionListner()
{
public void ActionPerformed(Actionevent e)
{
System.out.println(“Button was clicked”);
}
});
add(b1);
}
}
write a java program using linear searching algorithm to search for a particular item inside existing array
hi
write java program using AWT to print “welcome home” with times new roman font with size 16 in red color. when we click on button text color should change to blue