plzzzzzzzzz xplain this code

import java.awt.*;
import java.awt.event.*;
//import java.awt.MenuItem.*;
public class MenuForm extends Frame implements
ActionListener
{
MenuBar mb=new MenuBar();
Menu m1=new Menu("Master");
Menu m2 =new Menu("Transactions");
Menu m3=new Menu("Queries");
Menu m4=new Menu("Reports");
Menu m5=new Menu("Daily/Weekly");
Menu m6=new Menu("Housekeeping");
Menu m7=new Menu("About");
Menu m8=new Menu("Utilities/Tools");
Menu m9=new Menu("exit");

MenuItem m11=new MenuItem("consumer master");
MenuItem m12=new MenuItem("");
MenuItem m13=new MenuItem("");

MenuItem m21=new MenuItem("New Connection");
MenuItem m22=new MenuItem("Refill Booking");
MenuItem m23=new MenuItem("Shop Delivery");

MenuItem m51=new MenuItem("Mrk Dlry");

MenuItem m91=new MenuItem("Quit");

/*MenuItem m131=new MenuItem(" ");
MenuItem m132=new MenuItem(" ");
MenuItem m134=new MenuItem(" ");*/
Font f=new Font("TimesRoman",Font.BOLD,16);
Frame f1;

public static void main(String args[])
{
new MenuForm().setVisible(true);
}

public MenuForm()
{
super("Gas Agency Main Menu");

setSize(1280,800);
setBackground(Color.lightGray);
setLayout(null);

setMenuBar(mb);
/*m1.setFont(new Font("TimesRoman",
Font.BOLD,16));
m2.setFont(new Font("TimesRoman",
Font.BOLD,16));
m3.setFont(new Font("TimesRoman",
Font.BOLD,16));*/

mb.add(m1);
mb.add(m2);
mb.add(m3);
mb.add(m4);
mb.add(m5);
mb.add(m6);
mb.add(m7);
mb.add(m8);
mb.add(m9);

m1.add(m11);
m1.add(m12);
m1.add(m13);

m2.add(m21);
m2.add(m22);
m2.add(m23);

m5.add(m51);

m9.add(m91);

//m3.add(m31);

/*m13.setEnabled(false);
m13.add(m131);
m13.add(m132);
m13.add(m133);
m13.add(m134);
m13.add(m135);*/

setVisible(true);

/*m11.addActionListener(this);
m12.addActionListener(this);
m13.addActionListener(this);
m2.addActionListener(this);
m3.addActionListener(this);*/
m21.addActionListener(this);
m22.addActionListener(this);
m23.addActionListener(this);
/*m31.addActionListener(this);
m131.addActionListener(this);
m132.addActionListener(this);
m133.addActionListener(this);
m134.addActionListener(this);
m135.addActionListener(this);*/
m51.addActionListener(this);
m91.addActionListener(this);
}

public void actionPerformed(ActionEvent e)
{
/*if(e.getSource()==m11)
{

}
if(e.getSource()==m12)
{

}

if( (e.getSource()==m131) || (e.getSource()
==m132) || (e.getSource()==m133) || (e.getSource()==m134)
|| (e.getSource()==m135) )
{
}*/

if(e.getSource()==m21)
{
NewConnection nc=new NewConnection
();
nc.setVisible(true);
this.dispose();
}
if(e.getSource()==m22)
{
RefillBooking rb=new RefillBooking
();
rb.setVisible(true);
this.dispose();
}

if(e.getSource()==m23)
{
ShopDelivery sd=new ShopDelivery();
sd.setVisible(true);
this.dispose();
}

if(e.getSource()==m51)
{
MarkDelivery
mrk=new MarkDelivery();
mrk.setVisible
(true);
this.dispose();
}
if(e.getSource()==m91)
{
this.dispose();
System.exit(0);
}
}
}


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Programming Code AllOther Interview Questions

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???

0 Answers   FlashTECH,


i am doing my final year project about programming use verilog ,i am new about it so got problem,i want to record the readings of a waveform every 2us use the verilog code ,every ten readings i need to add them together after that i need to compare this series of number to get which one is the biggest , right now i don't know how to use code to store the readings every 2us on a waveform ,pls help me thanks a lot .

0 Answers  


Write a Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

0 Answers   InterGraph,


i have two internal tables with customer and credit amount in one table then customer and debit amount in another table. now i need output in single list as customer, credit amount, debit amount and (credit - debit). help me please

1 Answers  


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

1 Answers  






1.What type of material can be sent from a Java servlet to a browser ? How does the browser know how to deal with the material? 2.Explain what happens to a servlet when a servlet engine is sent a GET request.

0 Answers  


Devise a program to implement the Fibonacci sequence.

0 Answers   Tech Mahindra,


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(); } } } plzzzzzzz xplain me this java code like why i m including this packages n the whole code plzzzzzz

0 Answers  


what full form name of B.K.U.

0 Answers  


Write a sql query to find n'th maximum in the database table.

3 Answers   Oracle,


Find out the list of roles which gives access to all t-codes in SAP? Thanks in advance.

0 Answers  


how to test the orientation of the layout in android.to note any changes in the ui design when change orientation

0 Answers  


Categories