@@ -44,11 +44,12 @@ public LibraryManagementGUI() {
44
44
45
45
private void initComponents () {
46
46
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
48
49
49
50
// Title Panel
50
51
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
52
53
JLabel titleLabel = new JLabel ("Library Management System" );
53
54
titleLabel .setFont (new Font ("Arial" , Font .BOLD , 28 ));
54
55
titleLabel .setForeground (Color .BLACK ); // Black title color
@@ -58,7 +59,8 @@ private void initComponents() {
58
59
59
60
// Button Panel
60
61
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
62
64
GridBagConstraints gbc = new GridBagConstraints ();
63
65
gbc .insets = new Insets (10 , 10 , 10 , 10 );
64
66
0 commit comments