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 to find the list of users who have two codes su01 and pfcg? thank in advance all.

0 Answers  


JasperETL how to install and create simple project explain me clearly fnds iam wtg for ur rply

0 Answers  


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); } } }

0 Answers  


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.

0 Answers   Wipro,


Write a Program to find the reverse of a given number.

0 Answers   InterGraph,






Write a Program to truncate a given floating point value (e.g.16.25=16).

0 Answers   InterGraph,


Hello, Can anyone tell me the source code for FLAMES game in Control Language Programming(CLP)of AS/400.

1 Answers  


Write a Program to find the sum of digits of a given number until the sum becomes a single digit.

0 Answers   InterGraph,


Write a code snippet to display an integer in a binary format?

0 Answers  


WORKING STORAGE 01 WS-LENGTH PIC 9(1) VALUE 5. 01 DFHCOMMAREA. COPY ABCDEF (COPYBOOK ABCDEF IS HAVING ONLY ONE VARIABLE OF LENGTH X (100).) .. PROCEDUER DIVISION. ... EXEC CICS XCTL PROGRAM (WS-PGM) COMMAREA (DFHCOMMAREA) LENGTH (WS-LENGTH) RESP (WC-RESPONSE) END-EXEC 1. What will be the value of EIBCALEN in program ABCDEF? 2. What will be length of commarea when in ABCDEF? 3. Will such a code thow any error while linking to called program? Thanks in Advance

0 Answers  


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(); } }

0 Answers  


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  


Categories