Import Javax - Swing. Wi
Import Javax - Swing. Wi
*;
import java.awt.*;
import java.sql.*;
title.setFont(f);
label.setFont(f2);
t1.setFont(f2);
b1.setFont(f2);
b2.setFont(f2);
Container c = getContentPane();
c.setLayout(null);
c.add(title);
c.add(label);
c.add(t1);
c.add(b1);
c.add(b2);
b2.addActionListener(
a -> {
new Home(username); // Redirect to the Home screen
dispose(); // Close the current Withdraw window
}
);
b1.addActionListener(
a -> {
double balance = 0.0;
double wlimit = 0.0;
String url = "jdbc:mysql://localhost:3306/batch2";
setVisible(true);
setSize(800, 550);
setLocationRelativeTo(null);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setTitle("Withdraw Money");
}