-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHousekeeping.java
More file actions
36 lines (28 loc) · 1016 Bytes
/
Copy pathHousekeeping.java
File metadata and controls
36 lines (28 loc) · 1016 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
package Hotel.Management.System;
import javax.swing.*;
import java.awt.*;
public class Housekeeping extends JFrame {
Housekeeping() {
setTitle("Housekeeping");
JLabel heading = new JLabel("Housekeeping Section");
heading.setFont(new Font("Tahoma", Font.BOLD, 20));
heading.setBounds(100, 50, 300, 30);
add(heading);
// Example: Add housekeeping task button
JButton addTask = new JButton("Add Task");
addTask.setBounds(100, 120, 150, 30);
add(addTask);
// Example: View housekeeping status
JButton viewStatus = new JButton("View Status");
viewStatus.setBounds(100, 170, 150, 30);
add(viewStatus);
getContentPane().setBackground(new Color(230, 240, 250));
setLayout(null);
setSize(600, 400);
setLocationRelativeTo(null);
setVisible(true);
}
public static void main(String[] args) {
new Housekeeping();
}
}