Menu Bar

Horizontal Scrollable Menu

ads

Search This Blog

how to create Banking project page-1 login , create account and cancel button using java gui

How to create Banking project page-1 login , create account and cancel button using java gui 

This is mini project of banking . This is first page where is label , image , button .
here you can see three different button that is create account , login  and camcel button.

CREATE A/C Button
when you click create account button you can see this interface

after filled formed then click on OK button  then you account will created if any data is missing then it will show message box


LOGIN BUTTON
When you click login button then you can see this types of interface where you can login with your gmail and password

CANCEL BUTTON

when you click cancel button then program will closed 

Source Code

import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.*;
import java.io.*;
import java.util.*;

public class Banking3 extends JPanel  implements ActionListener
{
JFrame f3;
JLabel l1;
JTextField t1;
JButton b1,b2;
Banking3()
{
f3=new JFrame("amount page");
l1=new JLabel("Enter minimum amount(Rs:-1000)");
t1=new JTextField(10);

ImageIcon bg1=new ImageIcon("ok.png");
ImageIcon bg2=new ImageIcon("cancel.png");
b1=new JButton(bg1);
b2=new JButton(bg2);

f3.setVisible(true);
f3.setSize(1000,1000);
f3.setLayout(null);
f3.setBackground(Color.yellow);

l1.setBounds(200,10,500,100);
t1.setBounds(400,40,300,50);
b1.setBounds(100,350,350,150);
b2.setBounds(600,350,350,150);

f3.add(l1);
f3.add(t1);
f3.add(b1);
f3.add(b2);
b1.addActionListener(this);
b2.addActionListener(this);
}

public void actionPerformed(ActionEvent ee)
{
if(ee.getSource().equals(b1))
{
System.out.println(" your account is created ");
}
if(ee.getSource().equals(b2))
{
f3.setVisible(false);
new Banking2();
}
}
public static void main(String ar[])
{
new Banking3();
}
}

if you want to see account create form then click here


No comments:

ads3