/*
<applet code="Mss" width=300 height=300></applet>
*/
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class Mss extends Applet
{
TextField MSS_Id,PSW;
Label l1,l2,l3;
public void init()
{
l1=new Label("MSS CET Jalna 431203 ",Label.CENTER);
add(l1);
l2=new Label("MSS_Id",Label.CENTER);
l3=new Label("PSW",Label.CENTER);
MSS_Id=new TextField(20);
PSW=new TextField(20);
PSW.setEchoChar('*');
Button b1=new Button("SUBMIT");
add(l2);
add(MSS_Id);
add(l3);
add(PSW);
l2.setBounds(10,30,90,20);
MSS_Id.setBounds(100,30,90,20);
l3.setBounds(10,50,90,20);
PSW.setBounds(100,50,90,20);
add(b1);
b1.setBounds(100,80,90,20);
setLayout(null);
setSize(250,100);
}
public void paint(Graphics g)
{
repaint();
}
}
Output:
<applet code="Mss" width=300 height=300></applet>
*/
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class Mss extends Applet
{
TextField MSS_Id,PSW;
Label l1,l2,l3;
public void init()
{
l1=new Label("MSS CET Jalna 431203 ",Label.CENTER);
add(l1);
l2=new Label("MSS_Id",Label.CENTER);
l3=new Label("PSW",Label.CENTER);
MSS_Id=new TextField(20);
PSW=new TextField(20);
PSW.setEchoChar('*');
Button b1=new Button("SUBMIT");
add(l2);
add(MSS_Id);
add(l3);
add(PSW);
l2.setBounds(10,30,90,20);
MSS_Id.setBounds(100,30,90,20);
l3.setBounds(10,50,90,20);
PSW.setBounds(100,50,90,20);
add(b1);
b1.setBounds(100,80,90,20);
setLayout(null);
setSize(250,100);
}
public void paint(Graphics g)
{
repaint();
}
}
Output:
Comments
Post a Comment
If you have any query, please let us know