-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeleteUserForm.java
127 lines (110 loc) · 5.89 KB
/
deleteUserForm.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
import java.awt.Image;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template
*/
/**
*
* @author waniya_mustafa
*/
public class deleteUserForm extends javax.swing.JFrame {
/**
* Creates new form deleteUserForm
*/
public deleteUserForm() {
initComponents();
ImageIcon background_img= new ImageIcon("/Users/waniya_mustafa/NetBeansProjects/DBMS_Project/src/DBMS-ProjectImages/deleteUser.jpg","");
Image img= background_img.getImage();
Image temp_img=img.getScaledInstance(760, 496,Image.SCALE_SMOOTH);
background_img=new ImageIcon(temp_img);
JLabel backgrnd = new JLabel("", background_img, JLabel.CENTER);
backgrnd.setBounds(0, 0, 760,496);
this.add(backgrnd);
deleteBtn.setOpaque(true);
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
deleteAcct = new javax.swing.JTextField();
deleteBtn = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Delete Account");
jLabel1.setFont(new java.awt.Font("Arima Madurai", 1, 22)); // NOI18N
jLabel1.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setText("Enter the Account Number to Delete");
deleteAcct.setBackground(new java.awt.Color(204, 204, 204));
deleteAcct.setFont(new java.awt.Font("Arima Madurai", 0, 18)); // NOI18N
deleteAcct.setForeground(new java.awt.Color(0, 0, 0));
deleteAcct.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 153, 153), 3, true));
deleteAcct.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
deleteAcctActionPerformed(evt);
}
});
deleteBtn.setBackground(new java.awt.Color(0, 153, 153));
deleteBtn.setFont(new java.awt.Font("Arima Madurai", 1, 18)); // NOI18N
deleteBtn.setForeground(new java.awt.Color(255, 255, 255));
deleteBtn.setText("Delete User");
deleteBtn.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(239, 121, 138), 3, true));
deleteBtn.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
deleteBtn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
deleteBtnActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(97, 97, 97)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 367, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(deleteAcct, javax.swing.GroupLayout.PREFERRED_SIZE, 305, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(43, 43, 43))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(deleteBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(127, 127, 127)))
.addContainerGap(296, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(287, Short.MAX_VALUE)
.addComponent(jLabel1)
.addGap(18, 18, 18)
.addComponent(deleteAcct, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(deleteBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(55, 55, 55))
);
pack();
}// </editor-fold>//GEN-END:initComponents
private void deleteAcctActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteAcctActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_deleteAcctActionPerformed
private void deleteBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteBtnActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_deleteBtnActionPerformed
/**
* @param args the command line arguments
*/
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton confirmWithdrawBtn;
private javax.swing.JButton confirmWithdrawBtn1;
private javax.swing.JTextField deleteAcct;
private javax.swing.JButton deleteBtn;
private javax.swing.JLabel jLabel1;
private javax.swing.JTextField withdrawAmount;
private javax.swing.JTextField withdrawAmount1;
// End of variables declaration//GEN-END:variables
}