-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHotelManagementSystem.java
60 lines (57 loc) · 1.67 KB
/
HotelManagementSystem.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
package hotel.management.system;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class HotelManagementSystem extends JFrame implements ActionListener {
HotelManagementSystem()
{
setBounds(200,200,1366,565);
// setSize(400,400);
setLocation(100,200);
ImageIcon i1 = new ImageIcon(ClassLoader.getSystemResource("hotel/management/system/icons/first.jpg"));
JLabel l1 = new JLabel(i1);
l1.setBounds(0,0,1366,565);
add(l1);
JLabel l2 = new JLabel("Hotel Management System");
l2.setBounds(80,410,1500,118);
l2.setForeground(Color.YELLOW);
l2.setFont(new Font("serif",Font.PLAIN,100));
l1.add(l2);
JButton b1 = new JButton("Next");
b1.setFont(new Font("serif",Font.BOLD,20));
b1.setBackground(Color.green);
b1.setForeground(Color.BLACK);
b1.setBounds(1180,470,150,50);
b1.addActionListener(this);
l1.add(b1);
setLayout(null);
setVisible(true);
// while(true)
// {
// l2.setVisible(false);
// try{
// Thread.sleep(500);
// }
// catch (Exception e)
// {
//
// }
// l2.setVisible(true);
// try{
// Thread.sleep(500);
// }
// catch(Exception e){
//
// }
// }
}
public void actionPerformed(ActionEvent ae)
{
new Login().setVisible(true);
this.setVisible(false);
}
public static void main(String[] args)
{
new HotelManagementSystem();
}
}