-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGUI1.java
More file actions
40 lines (36 loc) · 876 Bytes
/
GUI1.java
File metadata and controls
40 lines (36 loc) · 876 Bytes
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
import javax.swing.*;
import java.sql.*;
import java.awt.*;
import java.awt.event.*;
class GUI1 {
public static void NewS()
{
JFrame jf=new JFrame ("Fee Report");
JButton jb = new JButton ("Admin Login");
jb.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
GUI2 obj = new GUI2();
obj.NewScreen();
jf.dispose();
}
});
jb.setBounds(100,200,300,50);
JButton jb1 = new JButton("Accountant Login");
jb1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
GUI5 obj = new GUI5();
obj.Screen5();
jf.dispose();
}
});
jb1.setBounds(100,50,300,50);
jf.add(jb);
jf.add(jb1);
jf.setSize(500,500);
jf.setLayout(null);
jf.setVisible(true);
}
public static void main(String args[]) {
NewS();
}
}