-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddemploye.java
More file actions
39 lines (34 loc) · 773 Bytes
/
addemploye.java
File metadata and controls
39 lines (34 loc) · 773 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
import javax.swing.*;
import java.awt.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.color.*;
public class addemploye extends JFrame implements ActionListener
{
JLabel l1;
JButton b1;
public addemploye()
{
super("Admin Home");
setVisible(true);
setLayout(null);
getContentPane().setBackground(Color.YELLOW);
setSize(400,400);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
l1=new JLabel("Want to add new Employee??");
l1.setBounds(150,150,150,100);
add(l1);
b1=new JButton("Confirm");
b1.setBounds(150,200,70,70);
add(b1);
b1.addActionListener(this);
}
public void actionPerformed(ActionEvent event)
{
if(event.getSource() == b1)
{
//write something here
}
}
}