Skip to content

Commit 2175a0e

Browse files
authored
Update Main.java
1 parent b9c6098 commit 2175a0e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Main.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ public LibraryManagementGUI() {
4444

4545
private void initComponents() {
4646
JPanel mainPanel = new JPanel(new BorderLayout());
47-
mainPanel.setBackground(new Color(250, 235, 215)); // AntiqueWhite background color
47+
mainPanel.setBackground(new Color(173, 216, 230)); // LightBlue background color
48+
mainPanel.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20)); // Empty border for neat appearance
4849

4950
// Title Panel
5051
JPanel titlePanel = new JPanel(new FlowLayout(FlowLayout.CENTER));
51-
titlePanel.setBackground(new Color(250, 235, 215)); // AntiqueWhite background color
52+
titlePanel.setBackground(new Color(173, 216, 230)); // LightBlue background color
5253
JLabel titleLabel = new JLabel("Library Management System");
5354
titleLabel.setFont(new Font("Arial", Font.BOLD, 28));
5455
titleLabel.setForeground(Color.BLACK); // Black title color
@@ -58,7 +59,8 @@ private void initComponents() {
5859

5960
// Button Panel
6061
JPanel buttonPanel = new JPanel(new GridBagLayout());
61-
buttonPanel.setBackground(new Color(250, 235, 215)); // AntiqueWhite background color
62+
buttonPanel.setBackground(new Color(173, 216, 230)); // LightBlue background color
63+
buttonPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); // Empty border for neat appearance
6264
GridBagConstraints gbc = new GridBagConstraints();
6365
gbc.insets = new Insets(10, 10, 10, 10);
6466

0 commit comments

Comments
 (0)