diff --git a/desktop/classes/.data/desktop.cdi b/desktop/classes/.data/desktop.cdi index 73449d4..643f06a 100644 Binary files a/desktop/classes/.data/desktop.cdi and b/desktop/classes/.data/desktop.cdi differ diff --git a/desktop/classes/desktop/Employee$1.class b/desktop/classes/desktop/Employee$1.class index 23d387d..b225c43 100644 Binary files a/desktop/classes/desktop/Employee$1.class and b/desktop/classes/desktop/Employee$1.class differ diff --git a/desktop/classes/desktop/Employee$2.class b/desktop/classes/desktop/Employee$2.class index 253c47e..d0596bb 100644 Binary files a/desktop/classes/desktop/Employee$2.class and b/desktop/classes/desktop/Employee$2.class differ diff --git a/desktop/classes/desktop/Employee$3.class b/desktop/classes/desktop/Employee$3.class index ac827b8..7c7408c 100644 Binary files a/desktop/classes/desktop/Employee$3.class and b/desktop/classes/desktop/Employee$3.class differ diff --git a/desktop/classes/desktop/Employee$4.class b/desktop/classes/desktop/Employee$4.class index 9b4e235..fcc5539 100644 Binary files a/desktop/classes/desktop/Employee$4.class and b/desktop/classes/desktop/Employee$4.class differ diff --git a/desktop/classes/desktop/Employee$5.class b/desktop/classes/desktop/Employee$5.class index e69d696..37c4cc3 100644 Binary files a/desktop/classes/desktop/Employee$5.class and b/desktop/classes/desktop/Employee$5.class differ diff --git a/desktop/classes/desktop/Employee$6.class b/desktop/classes/desktop/Employee$6.class index 3ae959f..8925166 100644 Binary files a/desktop/classes/desktop/Employee$6.class and b/desktop/classes/desktop/Employee$6.class differ diff --git a/desktop/classes/desktop/Employee$7.class b/desktop/classes/desktop/Employee$7.class new file mode 100644 index 0000000..585d4e8 Binary files /dev/null and b/desktop/classes/desktop/Employee$7.class differ diff --git a/desktop/classes/desktop/Employee.class b/desktop/classes/desktop/Employee.class index d7dd8e8..bb419a5 100644 Binary files a/desktop/classes/desktop/Employee.class and b/desktop/classes/desktop/Employee.class differ diff --git a/desktop/classes/desktop/Finance$1.class b/desktop/classes/desktop/Finance$1.class index 3ad0fbd..0608f85 100644 Binary files a/desktop/classes/desktop/Finance$1.class and b/desktop/classes/desktop/Finance$1.class differ diff --git a/desktop/classes/desktop/Finance$2.class b/desktop/classes/desktop/Finance$2.class index 4ad710d..bacecc9 100644 Binary files a/desktop/classes/desktop/Finance$2.class and b/desktop/classes/desktop/Finance$2.class differ diff --git a/desktop/classes/desktop/Finance$3.class b/desktop/classes/desktop/Finance$3.class index 79e97f8..95335e0 100644 Binary files a/desktop/classes/desktop/Finance$3.class and b/desktop/classes/desktop/Finance$3.class differ diff --git a/desktop/classes/desktop/Finance$4.class b/desktop/classes/desktop/Finance$4.class index 0e3118f..8e26612 100644 Binary files a/desktop/classes/desktop/Finance$4.class and b/desktop/classes/desktop/Finance$4.class differ diff --git a/desktop/classes/desktop/Finance.class b/desktop/classes/desktop/Finance.class index 1784843..9664650 100644 Binary files a/desktop/classes/desktop/Finance.class and b/desktop/classes/desktop/Finance.class differ diff --git a/desktop/classes/desktop/Inventory$1.class b/desktop/classes/desktop/Inventory$1.class index 90e63ff..6d8a4f2 100644 Binary files a/desktop/classes/desktop/Inventory$1.class and b/desktop/classes/desktop/Inventory$1.class differ diff --git a/desktop/classes/desktop/Inventory$2.class b/desktop/classes/desktop/Inventory$2.class index 0b6fdf6..cd6ad30 100644 Binary files a/desktop/classes/desktop/Inventory$2.class and b/desktop/classes/desktop/Inventory$2.class differ diff --git a/desktop/classes/desktop/Inventory$3.class b/desktop/classes/desktop/Inventory$3.class index 23c7e4a..31bbd0c 100644 Binary files a/desktop/classes/desktop/Inventory$3.class and b/desktop/classes/desktop/Inventory$3.class differ diff --git a/desktop/classes/desktop/Inventory$4.class b/desktop/classes/desktop/Inventory$4.class index c1a4dfb..60fbc5b 100644 Binary files a/desktop/classes/desktop/Inventory$4.class and b/desktop/classes/desktop/Inventory$4.class differ diff --git a/desktop/classes/desktop/Inventory$5.class b/desktop/classes/desktop/Inventory$5.class index 69345a2..1c29def 100644 Binary files a/desktop/classes/desktop/Inventory$5.class and b/desktop/classes/desktop/Inventory$5.class differ diff --git a/desktop/classes/desktop/Inventory$6.class b/desktop/classes/desktop/Inventory$6.class index fcd7d40..6029d8b 100644 Binary files a/desktop/classes/desktop/Inventory$6.class and b/desktop/classes/desktop/Inventory$6.class differ diff --git a/desktop/classes/desktop/Inventory$7.class b/desktop/classes/desktop/Inventory$7.class new file mode 100644 index 0000000..d2b5afe Binary files /dev/null and b/desktop/classes/desktop/Inventory$7.class differ diff --git a/desktop/classes/desktop/Inventory.class b/desktop/classes/desktop/Inventory.class index 93246cf..5589405 100644 Binary files a/desktop/classes/desktop/Inventory.class and b/desktop/classes/desktop/Inventory.class differ diff --git a/desktop/classes/desktop/ManagerProfile$1.class b/desktop/classes/desktop/ManagerProfile$1.class index 70ddb42..5cc28f0 100644 Binary files a/desktop/classes/desktop/ManagerProfile$1.class and b/desktop/classes/desktop/ManagerProfile$1.class differ diff --git a/desktop/classes/desktop/ManagerProfile$2.class b/desktop/classes/desktop/ManagerProfile$2.class index 68717a2..84ef7c0 100644 Binary files a/desktop/classes/desktop/ManagerProfile$2.class and b/desktop/classes/desktop/ManagerProfile$2.class differ diff --git a/desktop/classes/desktop/ManagerProfile$3.class b/desktop/classes/desktop/ManagerProfile$3.class index ee8ff15..21edee1 100644 Binary files a/desktop/classes/desktop/ManagerProfile$3.class and b/desktop/classes/desktop/ManagerProfile$3.class differ diff --git a/desktop/classes/desktop/ManagerProfile$4.class b/desktop/classes/desktop/ManagerProfile$4.class index 4130df1..eacad0c 100644 Binary files a/desktop/classes/desktop/ManagerProfile$4.class and b/desktop/classes/desktop/ManagerProfile$4.class differ diff --git a/desktop/classes/desktop/ManagerProfile$5.class b/desktop/classes/desktop/ManagerProfile$5.class index e2c5026..4477ad5 100644 Binary files a/desktop/classes/desktop/ManagerProfile$5.class and b/desktop/classes/desktop/ManagerProfile$5.class differ diff --git a/desktop/classes/desktop/ManagerProfile$6.class b/desktop/classes/desktop/ManagerProfile$6.class index 85758bd..fce14e7 100644 Binary files a/desktop/classes/desktop/ManagerProfile$6.class and b/desktop/classes/desktop/ManagerProfile$6.class differ diff --git a/desktop/classes/desktop/ManagerProfile$7.class b/desktop/classes/desktop/ManagerProfile$7.class index fbef86c..765b75a 100644 Binary files a/desktop/classes/desktop/ManagerProfile$7.class and b/desktop/classes/desktop/ManagerProfile$7.class differ diff --git a/desktop/classes/desktop/ManagerProfile$8.class b/desktop/classes/desktop/ManagerProfile$8.class index 8ea1b33..ecf4099 100644 Binary files a/desktop/classes/desktop/ManagerProfile$8.class and b/desktop/classes/desktop/ManagerProfile$8.class differ diff --git a/desktop/classes/desktop/ManagerProfile$9.class b/desktop/classes/desktop/ManagerProfile$9.class index 1306855..4eb4961 100644 Binary files a/desktop/classes/desktop/ManagerProfile$9.class and b/desktop/classes/desktop/ManagerProfile$9.class differ diff --git a/desktop/classes/desktop/ManagerProfile.class b/desktop/classes/desktop/ManagerProfile.class index d6cb6e2..c2f81ad 100644 Binary files a/desktop/classes/desktop/ManagerProfile.class and b/desktop/classes/desktop/ManagerProfile.class differ diff --git a/desktop/classes/desktop/Schedule$1.class b/desktop/classes/desktop/Schedule$1.class index d122005..607744f 100644 Binary files a/desktop/classes/desktop/Schedule$1.class and b/desktop/classes/desktop/Schedule$1.class differ diff --git a/desktop/classes/desktop/Schedule$2.class b/desktop/classes/desktop/Schedule$2.class index c506e86..2f512da 100644 Binary files a/desktop/classes/desktop/Schedule$2.class and b/desktop/classes/desktop/Schedule$2.class differ diff --git a/desktop/classes/desktop/Schedule$3.class b/desktop/classes/desktop/Schedule$3.class index d9a5c6f..aaa791f 100644 Binary files a/desktop/classes/desktop/Schedule$3.class and b/desktop/classes/desktop/Schedule$3.class differ diff --git a/desktop/classes/desktop/Schedule$4.class b/desktop/classes/desktop/Schedule$4.class index db1729f..fe25930 100644 Binary files a/desktop/classes/desktop/Schedule$4.class and b/desktop/classes/desktop/Schedule$4.class differ diff --git a/desktop/classes/desktop/Schedule$5.class b/desktop/classes/desktop/Schedule$5.class index 36285df..2573ec3 100644 Binary files a/desktop/classes/desktop/Schedule$5.class and b/desktop/classes/desktop/Schedule$5.class differ diff --git a/desktop/classes/desktop/Schedule$6.class b/desktop/classes/desktop/Schedule$6.class index 0c9f3e3..3a49c8e 100644 Binary files a/desktop/classes/desktop/Schedule$6.class and b/desktop/classes/desktop/Schedule$6.class differ diff --git a/desktop/classes/desktop/Schedule$7.class b/desktop/classes/desktop/Schedule$7.class index dea0fd6..6ba38b6 100644 Binary files a/desktop/classes/desktop/Schedule$7.class and b/desktop/classes/desktop/Schedule$7.class differ diff --git a/desktop/classes/desktop/Schedule$8.class b/desktop/classes/desktop/Schedule$8.class index a6b99e6..ddaf3eb 100644 Binary files a/desktop/classes/desktop/Schedule$8.class and b/desktop/classes/desktop/Schedule$8.class differ diff --git a/desktop/classes/desktop/Schedule.class b/desktop/classes/desktop/Schedule.class index 907194b..d76b084 100644 Binary files a/desktop/classes/desktop/Schedule.class and b/desktop/classes/desktop/Schedule.class differ diff --git a/desktop/classes/desktop/Table.class b/desktop/classes/desktop/Table.class index 0f89a1d..fbaba44 100644 Binary files a/desktop/classes/desktop/Table.class and b/desktop/classes/desktop/Table.class differ diff --git a/desktop/classes/desktop/ViewTable.class b/desktop/classes/desktop/ViewTable.class index c6fda55..ced82ed 100644 Binary files a/desktop/classes/desktop/ViewTable.class and b/desktop/classes/desktop/ViewTable.class differ diff --git a/desktop/src/desktop/Employee.form b/desktop/src/desktop/Employee.form index 6aa09bf..3e25579 100644 --- a/desktop/src/desktop/Employee.form +++ b/desktop/src/desktop/Employee.form @@ -3,6 +3,7 @@
diff --git a/desktop/src/desktop/Employee.java b/desktop/src/desktop/Employee.java index c344b5d..1cbf394 100644 --- a/desktop/src/desktop/Employee.java +++ b/desktop/src/desktop/Employee.java @@ -55,6 +55,7 @@ public class Employee extends javax.swing.JFrame { Toolkit tk = Toolkit.getDefaultToolkit(); int xSize = ((int)tk.getScreenSize().getWidth()); int ySize = ((int)tk.getScreenSize().getHeight())-30; + String args[] = {}; public Employee() throws SQLException, IOException { restLogo = ImageIO.read(new File(logopath)); restIcon = new ImageIcon(restLogo); @@ -72,11 +73,7 @@ public Employee() throws SQLException, IOException { private void initComponents() {//GEN-BEGIN:initComponents PicturePanel = new javax.swing.JPanel(); - LabelContainingPicture = new javax.swing.JLabel(); PictureLabel = new javax.swing.JLabel(); - InfoPanel = new javax.swing.JPanel(); - jScrollPane1 = new javax.swing.JScrollPane(); - InfoTextArea = new javax.swing.JTextArea(); InformationLabel = new javax.swing.JLabel(); jScrollPane2 = new javax.swing.JScrollPane(); ModifyTable = new javax.swing.JTable(); @@ -86,66 +83,36 @@ private void initComponents() {//GEN-BEGIN:initComponents DeleteEmployee = new javax.swing.JButton(); AddtoDB = new javax.swing.JButton(); RestaurantLogoLabel = new javax.swing.JLabel(); + LabelContainingPicture = new javax.swing.JLabel(); + jScrollPane1 = new javax.swing.JScrollPane(); + InfoTextArea = new javax.swing.JTextArea(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + setTitle("Tabit"); setBackground(new java.awt.Color(0, 153, 153)); setIconImage(img.getImage()); setPreferredSize(new Dimension(xSize, ySize)); PicturePanel.setBackground(new java.awt.Color(255, 255, 255)); - PicturePanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 6)); + PicturePanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3)); javax.swing.GroupLayout PicturePanelLayout = new javax.swing.GroupLayout(PicturePanel); PicturePanel.setLayout(PicturePanelLayout); PicturePanelLayout.setHorizontalGroup( PicturePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(PicturePanelLayout.createSequentialGroup() - .addGap(21, 21, 21) - .addComponent(LabelContainingPicture, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE) - .addGap(21, 21, 21)) + .addGap(0, 0, Short.MAX_VALUE) ); PicturePanelLayout.setVerticalGroup( PicturePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(PicturePanelLayout.createSequentialGroup() - .addContainerGap() - .addComponent(LabelContainingPicture, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE) - .addContainerGap()) + .addGap(0, 0, Short.MAX_VALUE) ); PictureLabel.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N - InfoPanel.setBackground(new java.awt.Color(0, 0, 0)); - InfoPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3)); - - InfoTextArea.setEditable(false); - InfoTextArea.setColumns(20); - InfoTextArea.setRows(5); - InfoTextArea.setFont(bfont); - InfoTextArea.setForeground(Color.blue); - InfoTextArea.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED)); - jScrollPane1.setViewportView(InfoTextArea); - - javax.swing.GroupLayout InfoPanelLayout = new javax.swing.GroupLayout(InfoPanel); - InfoPanel.setLayout(InfoPanelLayout); - InfoPanelLayout.setHorizontalGroup( - InfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(InfoPanelLayout.createSequentialGroup() - .addGap(23, 23, 23) - .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 287, Short.MAX_VALUE) - .addGap(21, 21, 21)) - ); - InfoPanelLayout.setVerticalGroup( - InfoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, InfoPanelLayout.createSequentialGroup() - .addGap(25, 25, 25) - .addComponent(jScrollPane1) - .addGap(23, 23, 23)) - ); - InformationLabel.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N InformationLabel.setText("Employee Information"); - ModifyTable.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3)); + ModifyTable.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2)); ModifyTable.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null, null, null, null}, @@ -202,12 +169,19 @@ public void mouseClicked(java.awt.event.MouseEvent evt) { ModifyLabel.setFont(new java.awt.Font("Arial", 1, 24)); // NOI18N ModifyLabel.setText("Modify Employee Information"); - Exit.setBackground(new java.awt.Color(204, 255, 255)); - Exit.setFont(new java.awt.Font("Arial", 1, 11)); // NOI18N - Exit.setText("Exit"); + Exit.setBackground(new java.awt.Color(0, 0, 153)); + Exit.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + Exit.setForeground(new java.awt.Color(255, 255, 255)); + Exit.setText("Back"); + Exit.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + ExitActionPerformed(evt); + } + }); - AddEmployee.setBackground(new java.awt.Color(204, 255, 255)); - AddEmployee.setFont(new java.awt.Font("Arial", 1, 11)); // NOI18N + AddEmployee.setBackground(new java.awt.Color(0, 0, 153)); + AddEmployee.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + AddEmployee.setForeground(new java.awt.Color(255, 255, 255)); AddEmployee.setText("New Employee"); AddEmployee.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { @@ -215,8 +189,9 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { } }); - DeleteEmployee.setBackground(new java.awt.Color(204, 255, 255)); - DeleteEmployee.setFont(new java.awt.Font("Arial", 1, 11)); // NOI18N + DeleteEmployee.setBackground(new java.awt.Color(0, 0, 153)); + DeleteEmployee.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + DeleteEmployee.setForeground(new java.awt.Color(255, 255, 255)); DeleteEmployee.setText("Delete Employee"); DeleteEmployee.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { @@ -224,8 +199,9 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { } }); - AddtoDB.setBackground(new java.awt.Color(204, 255, 255)); - AddtoDB.setFont(new java.awt.Font("Arial", 1, 11)); // NOI18N + AddtoDB.setBackground(new java.awt.Color(0, 0, 153)); + AddtoDB.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N + AddtoDB.setForeground(new java.awt.Color(255, 255, 255)); AddtoDB.setText("Save"); AddtoDB.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { @@ -233,6 +209,15 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { } }); + InfoTextArea.setEditable(false); + InfoTextArea.setColumns(20); + InfoTextArea.setLineWrap(true); + InfoTextArea.setRows(5); + InfoTextArea.setFont(bfont); + InfoTextArea.setForeground(Color.blue); + InfoTextArea.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3)); + jScrollPane1.setViewportView(InfoTextArea); + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( @@ -240,57 +225,64 @@ public void actionPerformed(java.awt.event.ActionEvent evt) { .addGroup(layout.createSequentialGroup() .addGap(20, 20, 20) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 606, Short.MAX_VALUE) + .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 489, Short.MAX_VALUE) .addComponent(ModifyLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) - .addComponent(AddEmployee, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(DeleteEmployee, javax.swing.GroupLayout.DEFAULT_SIZE, 147, Short.MAX_VALUE)) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) + .addComponent(AddEmployee, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(DeleteEmployee, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addComponent(Exit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(AddtoDB, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)))) + .addComponent(Exit, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE) + .addComponent(AddtoDB, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(PicturePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(PictureLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 291, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(RestaurantLogoLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) - .addGap(18, 18, 18) - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(InformationLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 342, javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(InfoPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addContainerGap()) + .addGroup(layout.createSequentialGroup() + .addComponent(LabelContainingPicture, javax.swing.GroupLayout.DEFAULT_SIZE, 6, Short.MAX_VALUE) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(PicturePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGroup(layout.createSequentialGroup() + .addComponent(PictureLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 291, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(0, 32, Short.MAX_VALUE))) + .addGap(23, 23, 23) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) + .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 318, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(InformationLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 291, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(85, 85, 85)) + .addGroup(layout.createSequentialGroup() + .addGap(55, 55, 55) + .addComponent(RestaurantLogoLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE) + .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() + .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(InformationLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(PictureLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(ModifyLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE)) + .addComponent(ModifyLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(7, 7, 7) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(LabelContainingPicture, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() - .addComponent(InfoPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addGap(25, 25, 25)) - .addGroup(layout.createSequentialGroup() - .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 350, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(InformationLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addComponent(AddEmployee) - .addComponent(AddtoDB, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) - .addGroup(layout.createSequentialGroup() - .addComponent(DeleteEmployee) - .addContainerGap()) - .addComponent(Exit, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) + .addComponent(jScrollPane1)) + .addComponent(PicturePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) + .addComponent(RestaurantLogoLabel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGroup(layout.createSequentialGroup() + .addComponent(AddEmployee, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(5, 5, 5) + .addComponent(DeleteEmployee, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() - .addComponent(PicturePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(33, 33, 33) - .addComponent(RestaurantLogoLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE) - .addContainerGap()))) + .addComponent(AddtoDB, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(5, 5, 5) + .addComponent(Exit, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addContainerGap()) ); pack(); @@ -460,6 +452,12 @@ private void AddtoDBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST }//GEN-LAST:event_AddtoDBActionPerformed + + private void ExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ExitActionPerformed + // TODO add your handling code here: + ManagerProfile.main(args); + super.dispose(); + }//GEN-LAST:event_ExitActionPerformed public static boolean isDateValid(String date) { @@ -557,7 +555,6 @@ public void run() { private javax.swing.JButton AddtoDB; private javax.swing.JButton DeleteEmployee; private javax.swing.JButton Exit; - private javax.swing.JPanel InfoPanel; private javax.swing.JTextArea InfoTextArea; private javax.swing.JLabel InformationLabel; private javax.swing.JLabel LabelContainingPicture; diff --git a/desktop/src/desktop/Finance.form b/desktop/src/desktop/Finance.form index 6b44eac..70491e3 100644 --- a/desktop/src/desktop/Finance.form +++ b/desktop/src/desktop/Finance.form @@ -3,6 +3,7 @@