Deposit
Deposit
java
package ASimulatorSystem;
import java.awt.*;
import java.awt.event.*;
import javax.swing.;
import java.util.;
JTextField 11,12;
JButton b1,b2,b3;
JLabel 11,12,13;
String pin;
Deposit(String pin){
this.pin pin;
ImageIcon il = new
ImageIcon(ClassLoader.getSystemResource("ASimulatorSystem/icons/atm.
jpg")); Image i2=il.getImage().getScaledInstance(1000, 1180,
Image.SCALE_DEFAULT); Imagelcon 13= new Imagelcon(12); JLabel 13
new JLabel(13); 13.setBounds(0, 0, 960, 1080);
add(13);
11.setForeground(Color. WHITE);
t1=new JTextField();
B1=new JButton("DEPOSIT);
setLayout(null);
11.setBounds(190,350,400,35);
13.add(11);
11.setBounds(190,420,320,25);
13.add(t1);
bl.setBounds(390,588,150,35);
13.add(b1);
b2.setBounds(390,633,150,35);
13.add(b2);
bl.addActionListener(this);
b2.addActionListener(this);
setSize(960,1080);
setUndecorated(true);
setLocation(500,0);
setVisible(true);
try{
String amount=tl.getText();
if(ae.getSource()==b1){
if(tl.getText().equals("")){
}else{
new Transactions(pin).setVisible(true);
} Jelse if(ae.getSource()==h2){
setVisible(false);
new Transactions(pin).setVisible(true);
}catch(Exception e) {
e.printStackTrace();
}
public static void main(String[] args){
new Deposit("").setVisible(true);
Signup.java
package ASimulatorSystem;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
import java.util.*;
JLabel 11,12,13,14,15,16,17,18,19,110,111,112,113,114,115;
JTextField 11,12,13,14,15,16,17;
JRadioButton rl.r2,13,14,15;
JButton b;
JDateChooser dateChooser;
Signup(){
110=new JLabel("City:");
113=new JLabel("Date");
12 new JTextField();
15=new JTextField();
17 new JTextField();
b new JButton("Next");
b.setBackground(Color.BLACK); b.setForeground(Color.WHITE);
groupgender.add(r1); groupgender.add(r2);
r3new JRadioButton("Married");
r3.setBackground(Color. WHITE);
r4new JRadioButton("Unmarried");
r4.setBackground(Color. WHITE);
r5new JRadioButton("Other");
r5.setBackground(Color. WHITE);
groupstatus.add(r3);
groupstatus.add(r4);
groupstatus.add(r5);
dateChooser=new DateChooser();
setLayout(null);
11.setBounds(140,20,600,40); add(11);
12.setBounds(290,80,600,30);
add(12);
13.setBounds(100,140,100,30);
add(13);
11.setBounds(300,140,400,30);
add(11);
14.setBounds(100,190,200,30);
add(14);
t2.setBounds(300,190,400,30); add(12);
15.setBounds(100,240,200,30); add(15);
16.setBounds(100,290,200,30); add(16);
r1.setBounds(300,290,60,30); add(r1).
r2.setBounds(450,290,90,30); add(r2);
17.setBounds(100,340,200,30); add(17):
13.setBounds(300,340,400,30); add(13);
18.setBounds(100,390,200,30); add(18);
r3.setBounds(300,390,100,30); add(r31:
14.setBounds(450,390,100,30); add(r4);
15.setBounds(635,390,100,30); add(r5);
19.setBounds(100,440,200,30); add(19);
14.setBounds(300,440,400,30); add(14);
110.setBounds(100.490,200,30);
add(110);
15.setBounds(300,490,400,30);
add(15);