import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
class swingdemo extends Frame implements ActionListener
{
JFrame frm;
JMenuBar mb;
JMenu mFile,mTransaction;
JMenuItem itmLogin,itmQuitApp,itmCashDeposit,itmChequeDeposit;
JLabel lblName;
JTextField txtName;
public swingdemo()
{
frm = new JFrame("Bank Management System");
frm.setLayout(null);
frm.setSize(600,500);
frm.setVisible(true);
//Menu Coding
mb = new JMenuBar();
mFile = new JMenu("File");
itmLogin = new JMenuItem("Login");
itmQuitApp = new JMenuItem("Quit Application");
mFile.add(itmLogin);
mFile.add(itmQuitApp);
mTransaction = new JMenu("Transaction");
itmCashDeposit = new JMenuItem("Cash Deposit");
itmChequeDeposit = new JMenuItem("Cheque Deposit");
mTransaction.add(itmCashDeposit);
mTransaction.add(itmChequeDeposit);
itmCashDeposit.addActionListener(this);
mb.add(mFile);
mb.add(mTransaction);
frm.setJMenuBar(mb);
//Label
lblName = new JLabel("Name");
lblName.setBounds(70,20,200,50);
frm.add(lblName);
txtName = new JTextField(25);
txtName.setBounds(140,20,150,20);
frm.add(txtName);
}
public void actionPerformed(ActionEvent e)
{
Object o = e.getSource();
if(o==itmCashDeposit)
{
}
}
public static void main(String args[])
{
swingdemo s = new swingdemo();
}
}