2. AWT LAYOUT IN JAVA
Submitted By
RAMRAJ MEENA
BCA – 2ND Year
Dezyne E’ Cole College
106/10, Civil Lines, Ajmer
Tel: 0145-2624679
www.dezyneecole.com
2015-2016
3. Acknowledgement
This awt layout “JAVA” was developed at Dezyne E’cole College.
During the making of this project I have learnt a lot and I thank my mentor
Mr. Mukesh Gujar for helping us during the making of project.
I thank my college “Dezyne E’cole College” for helping us to bring out our
skill.
Thank you,
Ramraj meena
BCA 2 nd Year
11. Window 2
Number System
txtcity.setText("");
ta.setText("");
b1.setLabel("Show");
}
}
public void windowActivated(WindowEvent e){}
public void windowDeactivated(WindowEvent e){}
public void windowClosed(WindowEvent e){}
public void windowClosing(WindowEvent e){System.exit(0);}
public void windowOpened(WindowEvent e){}
public void windowIconified(WindowEvent e){}
public void windowDeiconified(WindowEvent e){}
public static void main(String args[])
{
personal pr=new personal();
}
}
22. Window 4
Upper case lower case
import java.awt.*;
import java.awt.event.*;
public class upper extends Frame implements ActionListener,WindowListener
{
Label lblh,lblnm,lblup,lbllo;
TextField txtnm,txtup,txtlo;
Button b1,b2;
public upper()
{
setTitle("Upper & Lower");
setSize(350,300);
setResizable(false);
setBackground(Color.black);
lblh=new Label("Upper &Lower
Case");add(lblh);lblh.setBounds(100,40,150,30);
Font f=new Font("Lucido Cansole",Font.BOLD,15);
lblh.setFont(f);
lblh.setForeground(Color.white);
lblnm=new Label("Enter
Name");add(lblnm);lblnm.setBounds(10,80,150,30);
Font fo=new Font("Lucido
Cansole",Font.BOLD,14);
lblnm.setFont(fo);
lblnm.setForeground(Color.white);
lblup=new Label("Change
UpperCase");add(lblup);lblup.setBounds(10,120,150,30);
lblup.setFont(fo);
lblup.setForeground(Color.white);
lbllo=new Label("Change
LowerCase");add(lbllo);lbllo.setBounds(10,160,150,30);
lbllo.setFont(fo);
lbllo.setForeground(Color.white);
txtnm=new TextField();add(txtnm);txtnm.setBounds(170,80,150,30);
txtnm.setFont(fo);
txtup=new
TextField();add(txtup);txtup.setBounds(170,120,150,30);
txtup.setFont(fo);
txtup.setEditable(false);
23. Window 4
Upper case lower case
public void windowActivated(WindowEvent e){}
public void windowDeactivated(WindowEvent e){}
public void windowClosed(WindowEvent e){}
public void windowClosing(WindowEvent e){System.exit(0);}
public void windowOpened(WindowEvent e){}
public void windowIconified(WindowEvent e){}
public void windowDeiconified(WindowEvent e){}
public static void main(String args[])
{
upper u=new upper();
}
}