plzzzzzzzzz xplain this code
import java.awt.*;
import java.awt.event.*;
public class Agency extends Frame implements ActionListener
{
Label l1,l2,l3,l4;
Button b1;
TextField t1,t2;
String s1,s2,s3,s4;
public static void main(String args[])
{
new Agency().setVisible(true);
}
public Agency()
{
super("Gas Agency Package");
setSize(1280,800);
setBackground(Color.lightGray);
setLayout(null);
// setLayout(new BorderLayout());
t1=new TextField(20);
t1.setBounds(440,150,200,30);
t1.setBackground(Color.white);
t2=new TextField(20);
t2.setBounds(440,180,200,30);
t2.setBackground(Color.white);
t2.setEchoChar('*');
l1=new Label("Gas Agency Package");
l1.setBounds(400,30,300,50);
l1.setFont(new Font("TimesRoman",Font.BOLD,25));
l1.setAlignment(Label.CENTER);
l2=new Label("Enter your ID and Passoword");
l2.setFont(new Font("TimesRoman",Font.BOLD,20));
l2.setBounds(270,80,300,50);
l3=new Label("Enter ID");
l2.setFont(new Font
("TimesRoman",Font.BOLD,20));
l3.setBounds(270,150,120,50);
l4=new Label("Enter Passoword");
l2.setFont(new Font
("TimesRoman",Font.BOLD,20));
l4.setBounds(270,180,140,50);
add(l1);
add(l2);
add(l3);
add(t1);
add(l4);
add(t2);
b1=new Button("Login");
b1.setBackground(Color.white);
b1.setBounds(400,280,100,70);
b1.addActionListener(this);
add(b1);
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==b1)
{
s3="svce";
s4="svce";
s1=t1.getText();
s2=t2.getText();
if(s1.equals(s3) && s2.equals(s4))
{
//System.out.println("password is
correct");
MenuForm m= new MenuForm();
m.setVisible(true);
//this.dispose();
}
else
{
System.out.println("password not
correct");
}
this.dispose();
}
}
}
plzzzzzzzzz xplain this code
No Answer is Posted For this Question
Be the First to Post Answer
In LSMW , what does the following error mean and how to rectify it : Incorrect interface data for set 78 in method C . This error is occuring in idoc processing step of LSMW.
can any body give me answer to this question please? please give me code in cl with the folling specifications. 1.Accept 2 parameters-date and date type 2.If date type is J then convert date to *MDY format 3.If date type is M convert date to *JUL format 4. Send a program message with the value of converted date? Please give me the answer.Because im practicing in my house.Im taking trining on AS/400.
plzzzzzzzzz xplain this code import java.awt.*; import java.awt.event.*; public class Link extends Frame implements ActionListener { Label l1; Button b1; public static void main(String sr[]) { new Link().setVisible(true); } public Link() { super("Warning"); setSize(500,500); setBackground(Color.lightGray); setLayout(null); l1=new Label("There is no Link"); l1.setBounds(0,0,500,460); l1.setFont(new Font("TimesRoman",Font.BOLD,35)); l1.setAlignment(Label.CENTER); add(l1); b1=new Button("QUIT"); b1.setBackground(Color.orange); b1.setBounds(0,460,500,40); b1.addActionListener(this); add(b1); } public void actionPerformed(ActionEvent e) { this.dispose(); } }
Write a program in prolog to compute the factorial of a number using iteration/tail recursion?
Could u please tell me any UNIX scripts that 'll lead to find the network latency of the servers.?or else any unix command to find the network latency of a server?Thnx in advance...
Write a Program to find the sum of digits of a given number until the sum becomes a single digit.
Write a Program to find the reverse of a given number.
How many digit have a Polaris 1995 300c.c. 2x4 nad how many have a Polaris 2007 300 c.c 2x4? And what site I can check this information???
find out the list of users who have access to all t-codes starts with 'SU'? thanks in advance all.
i wrote from two tables (employee and department) 1.select * from employee,department; (it is cartesian product) but 2.select * from employee department; (?????????????????) by default it displays the employee table,what is the reason it is not taking department ??? mail @ mak2786@gmail.com Arunkumar
Write a Program to find the number of words in a sentence.
Hello, Can anyone tell me the source code for FLAMES game in Control Language Programming(CLP)of AS/400.