Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package CampusSmartCafe.view; import javax.swing.JOptionPane; /** * * @author mingming */ import CampusSmartCafe.dao.AccountDAO; import CampusSmartCafe.model.*; import com.orsoncharts.plot.PiePlot3D; import java.sql.Date; import java.sql.Time; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartFrame; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.PiePlot; import org.jfree.data.general.DefaultPieDataset; public class MainFrame2 extends javax.swing.JFrame { private Account acc; /** * Creates new form MainFrame2 */ public MainFrame2() { initComponents(); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { MainPanel = new javax.swing.JPanel(); Login = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); usernameIn = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); LoginButton = new javax.swing.JButton(); createNewAcc = new javax.swing.JButton(); passwordIn = new javax.swing.JPasswordField(); jLabel1 = new javax.swing.JLabel(); CreateAccount = new javax.swing.JPanel(); jLabel5 = new javax.swing.JLabel(); usernameIn_N = new javax.swing.JTextField(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); subbmit = new javax.swing.JButton(); jButton4 = new javax.swing.JButton(); backToLogin = new javax.swing.JButton(); passwordIn_N1 = new javax.swing.JPasswordField(); passwordIn_Con1 = new javax.swing.JPasswordField(); background = new javax.swing.JLabel(); ProfilePanel = new javax.swing.JPanel(); jLabel55 = new javax.swing.JLabel(); total_c_input = new javax.swing.JTextField(); jButton8 = new javax.swing.JButton(); jLabel56 = new javax.swing.JLabel(); jLabel57 = new javax.swing.JLabel(); total_f_input = new javax.swing.JTextField(); jLabel58 = new javax.swing.JLabel(); jSeparator1 = new javax.swing.JSeparator(); jLabel59 = new javax.swing.JLabel(); jLabel61 = new javax.swing.JLabel(); jLabel63 = new javax.swing.JLabel(); BalanceButton = new javax.swing.JButton(); CalorieButton = new javax.swing.JButton(); cur_funds_s = new javax.swing.JLabel(); cur_calorie_s = new javax.swing.JLabel(); jLabel60 = new javax.swing.JLabel(); jLabel62 = new javax.swing.JLabel(); total_calorie_s = new javax.swing.JLabel(); total_funds_s = new javax.swing.JLabel(); Logout = new javax.swing.JButton(); MapCafe7 = new javax.swing.JButton(); jLabel64 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); OrderInfoCafe = new javax.swing.JPanel(); jLabel36 = new javax.swing.JLabel(); jLabel37 = new javax.swing.JLabel(); jLabel38 = new javax.swing.JLabel(); jLabel53 = new javax.swing.JLabel(); jLabel167 = new javax.swing.JLabel(); jLabel168 = new javax.swing.JLabel(); jLabel169 = new javax.swing.JLabel(); jLabel170 = new javax.swing.JLabel(); jLabel171 = new javax.swing.JLabel(); jButton2 = new javax.swing.JButton(); OrderInfoVM = new javax.swing.JPanel(); jLabel27 = new javax.swing.JLabel(); jLabel28 = new javax.swing.JLabel(); jLabel29 = new javax.swing.JLabel(); jLabel30 = new javax.swing.JLabel(); jLabel31 = new javax.swing.JLabel(); jLabel32 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); Map = new javax.swing.JPanel(); Cafe1Button = new javax.swing.JButton(); InNOutButton = new javax.swing.JButton(); ToGoButton = new javax.swing.JButton(); PizzaButton = new javax.swing.JButton(); RamenButton = new javax.swing.JButton(); jButton10 = new javax.swing.JButton(); jButton11 = new javax.swing.JButton(); jButton12 = new javax.swing.JButton(); jButton13 = new javax.swing.JButton(); Profile6 = new javax.swing.JButton(); Logout1 = new javax.swing.JButton(); jLabel10 = new javax.swing.JLabel(); Ramen = new javax.swing.JPanel(); MenuPanel3 = new javax.swing.JPanel(); jLabel91 = new javax.swing.JLabel(); jLabel92 = new javax.swing.JLabel(); jLabel94 = new javax.swing.JLabel(); jLabel95 = new javax.swing.JLabel(); jLabel96 = new javax.swing.JLabel(); jLabel97 = new javax.swing.JLabel(); jLabel98 = new javax.swing.JLabel(); Ramen_q0 = new javax.swing.JTextField(); Ramen_q1 = new javax.swing.JTextField(); Ramen_q2 = new javax.swing.JTextField(); jLabel99 = new javax.swing.JLabel(); jLabel100 = new javax.swing.JLabel(); jLabel101 = new javax.swing.JLabel(); jLabel102 = new javax.swing.JLabel(); jLabel103 = new javax.swing.JLabel(); jLabel104 = new javax.swing.JLabel(); jLabel105 = new javax.swing.JLabel(); jLabel106 = new javax.swing.JLabel(); jLabel107 = new javax.swing.JLabel(); jLabel108 = new javax.swing.JLabel(); jLabel109 = new javax.swing.JLabel(); jLabel110 = new javax.swing.JLabel(); jLabel111 = new javax.swing.JLabel(); jLabel112 = new javax.swing.JLabel(); jLabel113 = new javax.swing.JLabel(); Ramen_q3 = new javax.swing.JTextField(); Ramen_q4 = new javax.swing.JTextField(); Ramen_q5 = new javax.swing.JTextField(); jLabel114 = new javax.swing.JLabel(); jLabel115 = new javax.swing.JLabel(); Ramen_gettotal = new javax.swing.JButton(); Ramen_order = new javax.swing.JButton(); jLabel116 = new javax.swing.JLabel(); Ramen_totalfunds = new javax.swing.JTextField(); Ramen_totalcalories = new javax.swing.JTextField(); MapCafe3 = new javax.swing.JButton(); Profile2 = new javax.swing.JButton(); Logout2 = new javax.swing.JButton(); jLabel54 = new javax.swing.JLabel(); Pizza = new javax.swing.JPanel(); Profile1 = new javax.swing.JButton(); MapCafe2 = new javax.swing.JButton(); Logout3 = new javax.swing.JButton(); MenuPanel5 = new javax.swing.JPanel(); jLabel142 = new javax.swing.JLabel(); jLabel143 = new javax.swing.JLabel(); jLabel144 = new javax.swing.JLabel(); jLabel145 = new javax.swing.JLabel(); jLabel146 = new javax.swing.JLabel(); jLabel147 = new javax.swing.JLabel(); jLabel148 = new javax.swing.JLabel(); pizza_q0 = new javax.swing.JTextField(); pizza_q1 = new javax.swing.JTextField(); pizza_q2 = new javax.swing.JTextField(); jLabel149 = new javax.swing.JLabel(); jLabel150 = new javax.swing.JLabel(); jLabel151 = new javax.swing.JLabel(); jLabel152 = new javax.swing.JLabel(); jLabel153 = new javax.swing.JLabel(); jLabel154 = new javax.swing.JLabel(); jLabel155 = new javax.swing.JLabel(); jLabel156 = new javax.swing.JLabel(); jLabel157 = new javax.swing.JLabel(); jLabel158 = new javax.swing.JLabel(); jLabel159 = new javax.swing.JLabel(); jLabel160 = new javax.swing.JLabel(); jLabel161 = new javax.swing.JLabel(); jLabel162 = new javax.swing.JLabel(); jLabel163 = new javax.swing.JLabel(); pizza_q3 = new javax.swing.JTextField(); pizza_q4 = new javax.swing.JTextField(); pizza_q5 = new javax.swing.JTextField(); jLabel164 = new javax.swing.JLabel(); jLabel165 = new javax.swing.JLabel(); pizza_gettotal = new javax.swing.JButton(); pizza_order = new javax.swing.JButton(); jLabel166 = new javax.swing.JLabel(); pizza_total_f = new javax.swing.JTextField(); pizza_total_c = new javax.swing.JTextField(); jLabel26 = new javax.swing.JLabel(); Cheesecake = new javax.swing.JPanel(); MapCafe1 = new javax.swing.JButton(); Profile = new javax.swing.JButton(); Logout4 = new javax.swing.JButton(); MenuPanel = new javax.swing.JPanel(); jLabel11 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); jLabel14 = new javax.swing.JLabel(); jLabel15 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); jLabel18 = new javax.swing.JLabel(); CC_q0 = new javax.swing.JTextField(); CC_q1 = new javax.swing.JTextField(); CC_q2 = new javax.swing.JTextField(); jLabel23 = new javax.swing.JLabel(); jLabel24 = new javax.swing.JLabel(); jLabel25 = new javax.swing.JLabel(); jLabel40 = new javax.swing.JLabel(); jLabel41 = new javax.swing.JLabel(); jLabel42 = new javax.swing.JLabel(); jLabel43 = new javax.swing.JLabel(); jLabel44 = new javax.swing.JLabel(); jLabel45 = new javax.swing.JLabel(); jLabel46 = new javax.swing.JLabel(); jLabel47 = new javax.swing.JLabel(); jLabel48 = new javax.swing.JLabel(); jLabel49 = new javax.swing.JLabel(); jLabel50 = new javax.swing.JLabel(); jLabel51 = new javax.swing.JLabel(); CC_q3 = new javax.swing.JTextField(); CC_q4 = new javax.swing.JTextField(); CC_q5 = new javax.swing.JTextField(); jLabel12 = new javax.swing.JLabel(); jLabel19 = new javax.swing.JLabel(); jLabel20 = new javax.swing.JLabel(); jLabel52 = new javax.swing.JLabel(); jButton6 = new javax.swing.JButton(); order = new javax.swing.JButton(); jLabel66 = new javax.swing.JLabel(); CC_total_c = new javax.swing.JTextField(); CC_total_f = new javax.swing.JTextField(); jLabel21 = new javax.swing.JLabel(); InAndOut = new javax.swing.JPanel(); Logout5 = new javax.swing.JButton(); MapCafe4 = new javax.swing.JButton(); MenuPanel2 = new javax.swing.JPanel(); jLabel67 = new javax.swing.JLabel(); jLabel68 = new javax.swing.JLabel(); jLabel69 = new javax.swing.JLabel(); jLabel70 = new javax.swing.JLabel(); jLabel71 = new javax.swing.JLabel(); jLabel72 = new javax.swing.JLabel(); jLabel73 = new javax.swing.JLabel(); IO_q1 = new javax.swing.JTextField(); IO_q2 = new javax.swing.JTextField(); IO_q3 = new javax.swing.JTextField(); jLabel74 = new javax.swing.JLabel(); jLabel75 = new javax.swing.JLabel(); jLabel76 = new javax.swing.JLabel(); jLabel77 = new javax.swing.JLabel(); jLabel78 = new javax.swing.JLabel(); jLabel79 = new javax.swing.JLabel(); jLabel80 = new javax.swing.JLabel(); jLabel81 = new javax.swing.JLabel(); jLabel82 = new javax.swing.JLabel(); jLabel83 = new javax.swing.JLabel(); jLabel84 = new javax.swing.JLabel(); jLabel85 = new javax.swing.JLabel(); jLabel86 = new javax.swing.JLabel(); jLabel87 = new javax.swing.JLabel(); jLabel88 = new javax.swing.JLabel(); IO_q4 = new javax.swing.JTextField(); IO_q5 = new javax.swing.JTextField(); IO_q6 = new javax.swing.JTextField(); jLabel89 = new javax.swing.JLabel(); jLabel90 = new javax.swing.JLabel(); IO_gettotal = new javax.swing.JButton(); IO_order = new javax.swing.JButton(); jLabel93 = new javax.swing.JLabel(); IO_totalfunds = new javax.swing.JTextField(); IO_totalcalories = new javax.swing.JTextField(); Profile3 = new javax.swing.JButton(); jLabel22 = new javax.swing.JLabel(); VM = new javax.swing.JPanel(); MapCafe6 = new javax.swing.JButton(); Logout6 = new javax.swing.JButton(); MenuPanel6 = new javax.swing.JPanel(); jLabel172 = new javax.swing.JLabel(); jLabel173 = new javax.swing.JLabel(); jLabel174 = new javax.swing.JLabel(); jLabel175 = new javax.swing.JLabel(); jLabel176 = new javax.swing.JLabel(); jLabel177 = new javax.swing.JLabel(); jLabel178 = new javax.swing.JLabel(); VM_q0 = new javax.swing.JTextField(); VM_q1 = new javax.swing.JTextField(); VM_q2 = new javax.swing.JTextField(); jLabel179 = new javax.swing.JLabel(); jLabel180 = new javax.swing.JLabel(); jLabel181 = new javax.swing.JLabel(); jLabel182 = new javax.swing.JLabel(); jLabel183 = new javax.swing.JLabel(); jLabel184 = new javax.swing.JLabel(); jLabel185 = new javax.swing.JLabel(); jLabel186 = new javax.swing.JLabel(); jLabel187 = new javax.swing.JLabel(); jLabel188 = new javax.swing.JLabel(); jLabel189 = new javax.swing.JLabel(); jLabel190 = new javax.swing.JLabel(); jLabel191 = new javax.swing.JLabel(); jLabel192 = new javax.swing.JLabel(); jLabel193 = new javax.swing.JLabel(); VM_q3 = new javax.swing.JTextField(); VM_q4 = new javax.swing.JTextField(); VM_q5 = new javax.swing.JTextField(); jLabel194 = new javax.swing.JLabel(); jLabel195 = new javax.swing.JLabel(); IO_gettotal2 = new javax.swing.JButton(); IO_order2 = new javax.swing.JButton(); jLabel196 = new javax.swing.JLabel(); VM_total_f = new javax.swing.JTextField(); VM_total_c = new javax.swing.JTextField(); Profile5 = new javax.swing.JButton(); jLabel65 = new javax.swing.JLabel(); ToGo = new javax.swing.JPanel(); MenuPanel4 = new javax.swing.JPanel(); jLabel117 = new javax.swing.JLabel(); jLabel118 = new javax.swing.JLabel(); jLabel119 = new javax.swing.JLabel(); jLabel120 = new javax.swing.JLabel(); jLabel121 = new javax.swing.JLabel(); jLabel122 = new javax.swing.JLabel(); jLabel123 = new javax.swing.JLabel(); Togo_q0 = new javax.swing.JTextField(); Togo_q1 = new javax.swing.JTextField(); Togo_q2 = new javax.swing.JTextField(); jLabel124 = new javax.swing.JLabel(); jLabel125 = new javax.swing.JLabel(); jLabel126 = new javax.swing.JLabel(); jLabel127 = new javax.swing.JLabel(); jLabel128 = new javax.swing.JLabel(); jLabel129 = new javax.swing.JLabel(); jLabel130 = new javax.swing.JLabel(); jLabel131 = new javax.swing.JLabel(); jLabel132 = new javax.swing.JLabel(); jLabel133 = new javax.swing.JLabel(); jLabel134 = new javax.swing.JLabel(); jLabel135 = new javax.swing.JLabel(); jLabel136 = new javax.swing.JLabel(); jLabel137 = new javax.swing.JLabel(); jLabel138 = new javax.swing.JLabel(); Togo_q3 = new javax.swing.JTextField(); Togo_q4 = new javax.swing.JTextField(); Togo_q5 = new javax.swing.JTextField(); jLabel139 = new javax.swing.JLabel(); jLabel140 = new javax.swing.JLabel(); IO_gettotal1 = new javax.swing.JButton(); IO_order1 = new javax.swing.JButton(); jLabel141 = new javax.swing.JLabel(); Togo_total_f = new javax.swing.JTextField(); Togo_total_c = new javax.swing.JTextField(); Logout7 = new javax.swing.JButton(); MapCafe5 = new javax.swing.JButton(); Profile4 = new javax.swing.JButton(); jLabel39 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(new java.awt.FlowLayout()); MainPanel.setPreferredSize(new java.awt.Dimension(800, 600)); MainPanel.setLayout(new java.awt.CardLayout()); Login.setLayout(null); jLabel2.setFont(new java.awt.Font("Lucida Grande", 1, 24)); // NOI18N jLabel2.setText("Welcome to Smart Cafe!"); Login.add(jLabel2); jLabel2.setBounds(140, 100, 370, 59); jLabel3.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N jLabel3.setText("User Name"); Login.add(jLabel3); jLabel3.setBounds(260, 190, 140, 40); usernameIn.setText(" "); usernameIn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { usernameInActionPerformed(evt); } }); Login.add(usernameIn); usernameIn.setBounds(380, 200, 62, 28); jLabel4.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N jLabel4.setText("Password"); Login.add(jLabel4); jLabel4.setBounds(270, 230, 110, 40); LoginButton.setText("Login"); LoginButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { LoginButtonActionPerformed(evt); } }); Login.add(LoginButton); LoginButton.setBounds(330, 290, 79, 29); createNewAcc.setText("New User"); createNewAcc.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { createNewAccActionPerformed(evt); } }); Login.add(createNewAcc); createNewAcc.setBounds(320, 330, 103, 29); passwordIn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { passwordInActionPerformed(evt); } }); Login.add(passwordIn); passwordIn.setBounds(380, 240, 60, 28); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/CampusSmartCafe/view/campus2 800.jpg"))); // NOI18N jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); Login.add(jLabel1); jLabel1.setBounds(0, 0, 870, 600); MainPanel.add(Login, "card2"); CreateAccount.setPreferredSize(new java.awt.Dimension(0, 0)); CreateAccount.setLayout(null); jLabel5.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N jLabel5.setText("User Name:"); CreateAccount.add(jLabel5); jLabel5.setBounds(270, 140, 110, 30); usernameIn_N.setText(" "); usernameIn_N.setMinimumSize(new java.awt.Dimension(150, 28)); CreateAccount.add(usernameIn_N); usernameIn_N.setBounds(390, 140, 62, 28); jLabel6.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N jLabel6.setText("Password:"); CreateAccount.add(jLabel6); jLabel6.setBounds(280, 180, 120, 22); jLabel7.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N jLabel7.setText("Confirm Password:"); CreateAccount.add(jLabel7); jLabel7.setBounds(200, 220, 173, 22); subbmit.setText("Submit"); subbmit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { subbmitActionPerformed(evt); } }); CreateAccount.add(subbmit); subbmit.setBounds(410, 270, 88, 29); jButton4.setText("Clear"); jButton4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton4ActionPerformed(evt); } }); CreateAccount.add(jButton4); jButton4.setBounds(320, 270, 76, 29); backToLogin.setText("Back"); backToLogin.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { backToLoginActionPerformed(evt); } }); CreateAccount.add(backToLogin); backToLogin.setBounds(220, 270, 75, 29); CreateAccount.add(passwordIn_N1); passwordIn_N1.setBounds(390, 180, 60, 28); CreateAccount.add(passwordIn_Con1); passwordIn_Con1.setBounds(390, 220, 60, 28); background.setIcon(new javax.swing.ImageIcon( getClass().getResource("/CampusSmartCafe/view/BRONCO-Guichun-Li-SCU-Campus800.jpg"))); // NOI18N CreateAccount.add(background); background.setBounds(0, 10, 880, 540); MainPanel.add(CreateAccount, "card3"); ProfilePanel.setLayout(null); jLabel55.setFont(new java.awt.Font("Lucida Grande", 0, 18)); // NOI18N jLabel55.setText("Enter the deposite amount"); ProfilePanel.add(jLabel55); jLabel55.setBounds(160, 92, 250, 20); total_c_input.setText(" "); ProfilePanel.add(total_c_input); total_c_input.setBounds(400, 120, 74, 28); jButton8.setText("Confirm"); jButton8.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton8ActionPerformed(evt); } }); ProfilePanel.add(jButton8); jButton8.setBounds(550, 120, 95, 29); jLabel56.setFont(new java.awt.Font("Lucida Grande", 0, 18)); // NOI18N jLabel56.setText("Dollars"); ProfilePanel.add(jLabel56); jLabel56.setBounds(480, 90, 60, 22); jLabel57.setFont(new java.awt.Font("Lucida Grande", 0, 18)); // NOI18N jLabel57.setText("Enter your daily calorie limit"); ProfilePanel.add(jLabel57); jLabel57.setBounds(140, 120, 243, 22); total_f_input.setText(" "); total_f_input.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { total_f_inputActionPerformed(evt); } }); ProfilePanel.add(total_f_input); total_f_input.setBounds(400, 90, 74, 28); jLabel58.setFont(new java.awt.Font("Lucida Grande", 0, 18)); // NOI18N jLabel58.setText("Calories"); ProfilePanel.add(jLabel58); jLabel58.setBounds(480, 120, 69, 22); ProfilePanel.add(jSeparator1); jSeparator1.setBounds(10, 170, 750, 10); jLabel59.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N jLabel59.setText("Monthly Balance:"); ProfilePanel.add(jLabel59); jLabel59.setBounds(430, 180, 180, 30); jLabel61.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N jLabel61.setText("Calorie Left Today:"); ProfilePanel.add(jLabel61); jLabel61.setBounds(410, 270, 190, 30); jLabel63.setText(" "); ProfilePanel.add(jLabel63); jLabel63.setBounds(370, 330, 4, 16); BalanceButton.setText("View Balance"); BalanceButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { BalanceButtonActionPerformed(evt); } }); ProfilePanel.add(BalanceButton); BalanceButton.setBounds(400, 320, 111, 29); CalorieButton.setText("View Calorie"); CalorieButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CalorieButtonActionPerformed(evt); } }); ProfilePanel.add(CalorieButton); CalorieButton.setBounds(610, 320, 130, 29); cur_funds_s.setBackground(new java.awt.Color(255, 255, 255)); cur_funds_s.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N cur_funds_s.setText("cur_f"); ProfilePanel.add(cur_funds_s); cur_funds_s.setBounds(610, 210, 110, 30); cur_calorie_s.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N cur_calorie_s.setText("cur_c"); ProfilePanel.add(cur_calorie_s); cur_calorie_s.setBounds(610, 270, 90, 30); jLabel60.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N jLabel60.setText("Available Balance:"); ProfilePanel.add(jLabel60); jLabel60.setBounds(420, 210, 200, 30); jLabel62.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N jLabel62.setText("Daily Calorie Limit:"); ProfilePanel.add(jLabel62); jLabel62.setBounds(410, 240, 200, 30); total_calorie_s.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N total_calorie_s.setText("total_c"); ProfilePanel.add(total_calorie_s); total_calorie_s.setBounds(610, 240, 90, 30); total_funds_s.setBackground(new java.awt.Color(255, 255, 255)); total_funds_s.setFont(new java.awt.Font("Lucida Grande", 1, 18)); // NOI18N total_funds_s.setText("total_f"); ProfilePanel.add(total_funds_s); total_funds_s.setBounds(610, 180, 100, 30); Logout.setText("Log Out"); Logout.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { LogoutActionPerformed(evt); } }); ProfilePanel.add(Logout); Logout.setBounds(30, 50, 94, 29); MapCafe7.setText("Map"); MapCafe7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MapCafe7ActionPerformed(evt); } }); ProfilePanel.add(MapCafe7); MapCafe7.setBounds(40, 80, 75, 29); jLabel64.setFont(new java.awt.Font("Lucida Grande", 0, 18)); // NOI18N jLabel64.setIcon(new javax.swing.ImageIcon(getClass().getResource("/CampusSmartCafe/view/scu.jpg"))); // NOI18N jLabel64.setText(" "); ProfilePanel.add(jLabel64); jLabel64.setBounds(10, 10, 1080, 490); jTextField1.setText("jTextField1"); ProfilePanel.add(jTextField1); jTextField1.setBounds(420, 200, 84, 28); MainPanel.add(ProfilePanel, "card10"); jLabel36.setText("Your balance is :"); jLabel37.setText("After this order"); jLabel38.setText("jLabel29"); jLabel53.setText("Your Calorie left for today is:"); jLabel167.setText("jLabel31"); jLabel168.setText("Your order will be ready at:"); jLabel169.setText("jLabel33"); jLabel170.setText("Please pick up at:"); jLabel171.setText("jLabel35"); jButton2.setText("View Chart"); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); javax.swing.GroupLayout OrderInfoCafeLayout = new javax.swing.GroupLayout(OrderInfoCafe); OrderInfoCafe.setLayout(OrderInfoCafeLayout); OrderInfoCafeLayout.setHorizontalGroup(OrderInfoCafeLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(OrderInfoCafeLayout.createSequentialGroup().addGroup(OrderInfoCafeLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(OrderInfoCafeLayout.createSequentialGroup().addGap(21, 21, 21) .addGroup(OrderInfoCafeLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(OrderInfoCafeLayout.createSequentialGroup() .addComponent(jLabel168) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel169)) .addGroup(OrderInfoCafeLayout.createSequentialGroup() .addComponent(jLabel170).addGap(18, 18, 18).addComponent(jLabel171)) .addGroup(OrderInfoCafeLayout.createSequentialGroup().addGap(51, 51, 51) .addGroup(OrderInfoCafeLayout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup(OrderInfoCafeLayout.createSequentialGroup() .addGap(25, 25, 25) .addGroup(OrderInfoCafeLayout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup(OrderInfoCafeLayout .createSequentialGroup() .addComponent(jLabel53) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel167)) .addGroup(OrderInfoCafeLayout .createSequentialGroup() .addComponent(jLabel36) .addGap(18, 18, 18) .addComponent(jLabel38)))) .addComponent(jLabel37))))) .addGroup(OrderInfoCafeLayout.createSequentialGroup().addGap(146, 146, 146) .addComponent(jButton2))) .addContainerGap(456, Short.MAX_VALUE))); OrderInfoCafeLayout .setVerticalGroup(OrderInfoCafeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(OrderInfoCafeLayout.createSequentialGroup().addGap(27, 27, 27) .addGroup(OrderInfoCafeLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel168).addComponent(jLabel169)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(OrderInfoCafeLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel170).addComponent(jLabel171)) .addGap(35, 35, 35).addComponent(jLabel37).addGap(18, 18, 18) .addGroup(OrderInfoCafeLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel36).addComponent(jLabel38)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(OrderInfoCafeLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel53).addComponent(jLabel167)) .addGap(27, 27, 27).addComponent(jButton2).addContainerGap(372, Short.MAX_VALUE))); MainPanel.add(OrderInfoCafe, "card12"); jLabel27.setText("Your balance is :"); jLabel28.setText("After this order"); jLabel29.setText("jLabel29"); jLabel30.setText("Your Calorie left for today is:"); jLabel31.setText("jLabel31"); jLabel32.setFont(new java.awt.Font("Lucida Grande", 0, 24)); // NOI18N jLabel32.setText("Your order is ready!"); jButton1.setText("View Chart"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); javax.swing.GroupLayout OrderInfoVMLayout = new javax.swing.GroupLayout(OrderInfoVM); OrderInfoVM.setLayout(OrderInfoVMLayout); OrderInfoVMLayout.setHorizontalGroup(OrderInfoVMLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(OrderInfoVMLayout.createSequentialGroup().addGap(25, 25, 25).addGroup(OrderInfoVMLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jLabel32) .addGroup(OrderInfoVMLayout.createSequentialGroup().addGap(25, 25, 25) .addGroup(OrderInfoVMLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(OrderInfoVMLayout.createSequentialGroup().addComponent(jLabel30) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jLabel31)) .addGroup(OrderInfoVMLayout.createSequentialGroup().addComponent(jLabel27) .addGap(18, 18, 18).addComponent(jLabel29)) .addComponent(jButton1))) .addComponent(jLabel28)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); OrderInfoVMLayout.setVerticalGroup(OrderInfoVMLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(OrderInfoVMLayout.createSequentialGroup().addGap(17, 17, 17).addComponent(jLabel32) .addGap(18, 18, 18).addComponent(jLabel28).addGap(18, 18, 18) .addGroup(OrderInfoVMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel27).addComponent(jLabel29)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(OrderInfoVMLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel30).addComponent(jLabel31)) .addGap(33, 33, 33).addComponent(jButton1) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); MainPanel.add(OrderInfoVM, "card12"); Map.setLayout(null); Cafe1Button.setText("The Cheesecake Factory"); Cafe1Button.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Cafe1ButtonActionPerformed(evt); } }); Map.add(Cafe1Button); Cafe1Button.setBounds(90, 130, 190, 29); InNOutButton.setText("IN-N-OUT"); InNOutButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { InNOutButtonActionPerformed(evt); } }); Map.add(InNOutButton); InNOutButton.setBounds(570, 60, 110, 29); ToGoButton.setText("Togo's Sandwiches"); ToGoButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ToGoButtonActionPerformed(evt); } }); Map.add(ToGoButton); ToGoButton.setBounds(90, 390, 150, 29); PizzaButton.setText("Domino's Pizza"); PizzaButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { PizzaButtonActionPerformed(evt); } }); Map.add(PizzaButton); PizzaButton.setBounds(500, 180, 120, 29); RamenButton.setText("Orenchi Ramen"); RamenButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { RamenButtonActionPerformed(evt); } }); Map.add(RamenButton); RamenButton.setBounds(90, 440, 140, 29); jButton10.setForeground(new java.awt.Color(0, 51, 204)); jButton10.setText("VM"); jButton10.setMargin(new java.awt.Insets(0, 0, 0, 0)); jButton10.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton10ActionPerformed(evt); } }); Map.add(jButton10); jButton10.setBounds(220, 220, 50, 29); jButton11.setForeground(new java.awt.Color(0, 51, 204)); jButton11.setText("VM"); jButton11.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton11ActionPerformed(evt); } }); Map.add(jButton11); jButton11.setBounds(390, 260, 50, 29); jButton12.setForeground(new java.awt.Color(0, 51, 204)); jButton12.setText("VM"); jButton12.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton12ActionPerformed(evt); } }); Map.add(jButton12); jButton12.setBounds(480, 100, 50, 29); jButton13.setForeground(new java.awt.Color(0, 51, 204)); jButton13.setText("VM"); jButton13.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton13ActionPerformed(evt); } }); Map.add(jButton13); jButton13.setBounds(560, 390, 50, 29); Profile6.setText("Profile"); Profile6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Profile6ActionPerformed(evt); } }); Map.add(Profile6); Profile6.setBounds(10, 50, 97, 29); Logout1.setText("Log Out"); Logout1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Logout1ActionPerformed(evt); } }); Map.add(Logout1); Logout1.setBounds(10, 20, 94, 29); jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING); jLabel10.setIcon( new javax.swing.ImageIcon(getClass().getResource("/CampusSmartCafe/view/campusmap800.jpg"))); // NOI18N jLabel10.setToolTipText(""); Map.add(jLabel10); jLabel10.setBounds(-100, 0, 900, 630); MainPanel.add(Map, "card4"); Ramen.setLayout(null); MenuPanel3.setBackground(new java.awt.Color(255, 255, 255)); jLabel91.setFont(new java.awt.Font("Lucida Grande", 1, 22)); // NOI18N jLabel91.setText("Menu"); jLabel92.setText("Shio Ramen"); jLabel94.setText("Shoyu Ramen"); jLabel95.setText("Orenchi Ramen"); jLabel96.setText("Fried Chicken"); jLabel97.setText("Orenchi Salad"); jLabel98.setText("Cha-Shu Goham"); Ramen_q0.setText(" "); Ramen_q0.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Ramen_q0ActionPerformed(evt); } }); Ramen_q1.setText(" "); Ramen_q1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Ramen_q1ActionPerformed(evt); } }); Ramen_q2.setText(" "); Ramen_q2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Ramen_q2ActionPerformed(evt); } }); jLabel99.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel99.setText("Calories"); jLabel100.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel100.setText("Price"); jLabel101.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel101.setText("Items"); jLabel102.setText("390"); jLabel103.setText(" 9.25"); jLabel104.setText("390"); jLabel105.setText("8.75"); jLabel106.setText("390"); jLabel107.setText("8.75"); jLabel108.setText("395"); jLabel109.setText("4.75"); jLabel110.setText("250"); jLabel111.setText("8.75"); jLabel112.setText("140"); jLabel113.setText("4.25"); Ramen_q3.setText(" "); Ramen_q3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Ramen_q3ActionPerformed(evt); } }); Ramen_q4.setText(" "); Ramen_q4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Ramen_q4ActionPerformed(evt); } }); Ramen_q5.setText(" "); Ramen_q5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Ramen_q5ActionPerformed(evt); } }); jLabel114.setText("Your total Charge is:"); jLabel115.setText("Total Calorie is:"); Ramen_gettotal.setText("Get total"); Ramen_gettotal.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Ramen_gettotalActionPerformed(evt); } }); Ramen_order.setText("Order"); Ramen_order.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Ramen_orderActionPerformed(evt); } }); jLabel116.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel116.setText("Quantity"); Ramen_totalfunds.setText(" "); Ramen_totalfunds.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Ramen_totalfundsActionPerformed(evt); } }); Ramen_totalcalories.setText(" "); Ramen_totalcalories.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Ramen_totalcaloriesActionPerformed(evt); } }); javax.swing.GroupLayout MenuPanel3Layout = new javax.swing.GroupLayout(MenuPanel3); MenuPanel3.setLayout(MenuPanel3Layout); MenuPanel3Layout.setHorizontalGroup(MenuPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel3Layout.createSequentialGroup().addGroup(MenuPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel3Layout .createSequentialGroup().addGap(0, 0, Short.MAX_VALUE) .addGroup(MenuPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel3Layout.createSequentialGroup().addGap(17, 17, 17) .addGroup(MenuPanel3Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel94).addComponent(jLabel95) .addComponent(jLabel92) .addGroup(MenuPanel3Layout.createSequentialGroup() .addGroup(MenuPanel3Layout.createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel96) .addComponent(jLabel97) .addComponent(jLabel98)) .addGap(2, 2, 2)))) .addGroup(MenuPanel3Layout.createSequentialGroup().addGap(42, 42, 42) .addComponent(jLabel101))) .addGroup(MenuPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel3Layout.createSequentialGroup().addGap(20, 20, 20) .addGroup(MenuPanel3Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel91).addComponent(jLabel99)) .addGap(28, 28, 28).addComponent(jLabel100).addGap(18, 18, 18) .addComponent(jLabel116)) .addGroup(MenuPanel3Layout.createSequentialGroup().addGap(41, 41, 41) .addGroup(MenuPanel3Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel104).addComponent(jLabel106) .addComponent(jLabel102).addComponent(jLabel108) .addComponent(jLabel110).addComponent(jLabel112)) .addGap(37, 37, 37).addComponent(jLabel103)))) .addGroup(MenuPanel3Layout.createSequentialGroup().addGap(60, 60, 60) .addGroup(MenuPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel3Layout.createSequentialGroup().addGroup(MenuPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel115).addComponent(jLabel114)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(MenuPanel3Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(Ramen_totalfunds, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Ramen_totalcalories, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel3Layout .createSequentialGroup().addComponent(Ramen_gettotal) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(MenuPanel3Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel3Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addGroup(MenuPanel3Layout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel107, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel105, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel109, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel111, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel113, javax.swing.GroupLayout.Alignment.TRAILING)) .addGap(47, 47, 47) .addGroup(MenuPanel3Layout.createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(Ramen_q1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Ramen_q0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Ramen_q2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Ramen_q3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Ramen_q4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Ramen_q5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(22, 22, 22)) .addGroup(MenuPanel3Layout.createSequentialGroup() .addComponent(Ramen_order).addGap(65, 65, 65))))))) .addContainerGap())); MenuPanel3Layout.setVerticalGroup(MenuPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel3Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel91).addGap(18, 18, 18) .addGroup(MenuPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel99).addComponent(jLabel100).addComponent(jLabel101) .addComponent(jLabel116)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel95).addComponent(jLabel102).addComponent(jLabel103) .addComponent(Ramen_q0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel94).addComponent(jLabel104).addComponent(jLabel105) .addComponent(Ramen_q1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel92).addComponent(jLabel106).addComponent(jLabel107) .addComponent(Ramen_q2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel96).addComponent(jLabel108).addComponent(jLabel109) .addComponent(Ramen_q3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel97).addComponent(jLabel110).addComponent(jLabel111) .addComponent(Ramen_q4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel98).addComponent(jLabel113) .addComponent(Ramen_q5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel112)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel114).addComponent(Ramen_totalfunds, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel115) .addComponent(Ramen_totalcalories, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(Ramen_gettotal).addComponent(Ramen_order)) .addGap(39, 39, 39))); Ramen.add(MenuPanel3); MenuPanel3.setBounds(430, 160, 369, 390); MapCafe3.setText("Map"); MapCafe3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MapCafe3ActionPerformed(evt); } }); Ramen.add(MapCafe3); MapCafe3.setBounds(40, 100, 75, 29); Profile2.setText("Profile"); Profile2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Profile2ActionPerformed(evt); } }); Ramen.add(Profile2); Profile2.setBounds(30, 130, 97, 29); Logout2.setText("Log Out"); Logout2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Logout2ActionPerformed(evt); } }); Ramen.add(Logout2); Logout2.setBounds(30, 70, 94, 29); jLabel54.setIcon( new javax.swing.ImageIcon(getClass().getResource("/CampusSmartCafe/view/orenchi_ramen.jpg"))); // NOI18N jLabel54.setText(" "); Ramen.add(jLabel54); jLabel54.setBounds(0, 0, 800, 600); MainPanel.add(Ramen, "card9"); Pizza.setLayout(null); Profile1.setText("Profile"); Profile1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Profile1ActionPerformed(evt); } }); Pizza.add(Profile1); Profile1.setBounds(30, 70, 97, 29); MapCafe2.setText("Map"); MapCafe2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MapCafe2ActionPerformed(evt); } }); Pizza.add(MapCafe2); MapCafe2.setBounds(40, 40, 75, 29); Logout3.setText("Log Out"); Logout3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Logout3ActionPerformed(evt); } }); Pizza.add(Logout3); Logout3.setBounds(30, 10, 94, 29); MenuPanel5.setBackground(new java.awt.Color(255, 255, 255)); jLabel142.setFont(new java.awt.Font("Lucida Grande", 1, 22)); // NOI18N jLabel142.setText("Menu"); jLabel143.setText("Cheese Tomato Pizza"); jLabel144.setText("Chicken Bacon Pizza"); jLabel145.setText("Veggie Chicken Pizza"); jLabel146.setText("Barbeque Chicken Pizza"); jLabel147.setText("Peppy Poneer Pizza"); jLabel148.setText("Coke"); pizza_q0.setText(" "); pizza_q0.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pizza_q0ActionPerformed(evt); } }); pizza_q1.setText(" "); pizza_q1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pizza_q1ActionPerformed(evt); } }); pizza_q2.setText(" "); pizza_q2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pizza_q2ActionPerformed(evt); } }); jLabel149.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel149.setText("Calories"); jLabel150.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel150.setText("Price"); jLabel151.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel151.setText("Items"); jLabel152.setText("1140"); jLabel153.setText("22.5"); jLabel154.setText("1800"); jLabel155.setText("25.5"); jLabel156.setText("2100"); jLabel157.setText("29.5"); jLabel158.setText("2050"); jLabel159.setText("31.5"); jLabel160.setText("1950"); jLabel161.setText("28.5"); jLabel162.setText("140"); jLabel163.setText("1.75"); pizza_q3.setText(" "); pizza_q3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pizza_q3ActionPerformed(evt); } }); pizza_q4.setText(" "); pizza_q4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pizza_q4ActionPerformed(evt); } }); pizza_q5.setText(" "); pizza_q5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pizza_q5ActionPerformed(evt); } }); jLabel164.setText("Your total Charge is:"); jLabel165.setText("Total Calorie is:"); pizza_gettotal.setText("Get total"); pizza_gettotal.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pizza_gettotalActionPerformed(evt); } }); pizza_order.setText("Order"); pizza_order.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pizza_orderActionPerformed(evt); } }); jLabel166.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel166.setText("Quantity"); pizza_total_f.setText(" "); pizza_total_f.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pizza_total_fActionPerformed(evt); } }); pizza_total_c.setText(" "); pizza_total_c.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pizza_total_cActionPerformed(evt); } }); javax.swing.GroupLayout MenuPanel5Layout = new javax.swing.GroupLayout(MenuPanel5); MenuPanel5.setLayout(MenuPanel5Layout); MenuPanel5Layout.setHorizontalGroup(MenuPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel5Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(MenuPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel159) .addGroup(MenuPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel155).addComponent(jLabel153).addComponent(jLabel157)) .addComponent(jLabel161).addComponent(jLabel163)) .addGap(36, 36, 36) .addGroup(MenuPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(pizza_q1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(pizza_q0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(pizza_q2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(pizza_q3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(pizza_q4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(pizza_q5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(28, 28, 28)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel5Layout.createSequentialGroup() .addGap(0, 13, Short.MAX_VALUE) .addGroup(MenuPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel5Layout.createSequentialGroup().addGap(17, 17, 17) .addGroup(MenuPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel144).addComponent(jLabel145) .addComponent(jLabel143) .addGroup(MenuPanel5Layout.createSequentialGroup() .addGroup(MenuPanel5Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel146).addComponent(jLabel147) .addComponent(jLabel148)) .addGap(2, 2, 2)))) .addGroup(MenuPanel5Layout.createSequentialGroup().addGap(42, 42, 42) .addComponent(jLabel151))) .addGroup(MenuPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel5Layout.createSequentialGroup().addGroup(MenuPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel5Layout.createSequentialGroup().addGap(20, 20, 20) .addGroup(MenuPanel5Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel142).addComponent(jLabel149)) .addGap(28, 28, 28).addComponent(jLabel150).addGap(18, 18, 18) .addComponent(jLabel166)) .addGroup(MenuPanel5Layout.createSequentialGroup().addGap(41, 41, 41) .addGroup(MenuPanel5Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel154).addComponent(jLabel156) .addComponent(jLabel152).addComponent(jLabel158) .addComponent(jLabel160).addComponent(jLabel162)))) .addGap(19, 19, 19)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel5Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(pizza_order).addGap(105, 105, 105)))) .addGroup(MenuPanel5Layout.createSequentialGroup().addGap(60, 60, 60).addGroup(MenuPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel5Layout.createSequentialGroup() .addGroup(MenuPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel165).addComponent(jLabel164)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(MenuPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(pizza_total_f, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(pizza_total_c, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(MenuPanel5Layout.createSequentialGroup().addGap(30, 30, 30) .addComponent(pizza_gettotal) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))); MenuPanel5Layout.setVerticalGroup(MenuPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel5Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel142).addGap(18, 18, 18) .addGroup(MenuPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel149).addComponent(jLabel150).addComponent(jLabel151) .addComponent(jLabel166)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel145).addComponent(jLabel152).addComponent(jLabel153) .addComponent(pizza_q0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel144).addComponent(jLabel154).addComponent(jLabel155) .addComponent(pizza_q1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel143).addComponent(jLabel156).addComponent(jLabel157) .addComponent(pizza_q2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel146).addComponent(jLabel158).addComponent(jLabel159) .addComponent(pizza_q3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel147).addComponent(jLabel160).addComponent(jLabel161) .addComponent(pizza_q4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel148).addComponent(jLabel163) .addComponent(pizza_q5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel162)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel164).addComponent(pizza_total_f, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel165) .addComponent(pizza_total_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(pizza_order).addComponent(pizza_gettotal)) .addGap(39, 39, 39))); Pizza.add(MenuPanel5); MenuPanel5.setBounds(-10, 210, 440, 390); jLabel26.setIcon(new javax.swing.ImageIcon(getClass().getResource("/CampusSmartCafe/view/dpizza3.jpg"))); // NOI18N jLabel26.setMaximumSize(new java.awt.Dimension(1000, 800)); jLabel26.setMinimumSize(new java.awt.Dimension(1000, 800)); jLabel26.setPreferredSize(new java.awt.Dimension(1000, 800)); Pizza.add(jLabel26); jLabel26.setBounds(-140, -60, 1010, 660); MainPanel.add(Pizza, "card8"); Cheesecake.setLayout(null); MapCafe1.setText("Map"); MapCafe1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MapCafe1ActionPerformed(evt); } }); Cheesecake.add(MapCafe1); MapCafe1.setBounds(40, 40, 75, 29); Profile.setText("Profile"); Profile.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { ProfileActionPerformed(evt); } }); Cheesecake.add(Profile); Profile.setBounds(30, 70, 97, 29); Logout4.setText("Log Out"); Logout4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Logout4ActionPerformed(evt); } }); Cheesecake.add(Logout4); Logout4.setBounds(30, 10, 94, 29); MenuPanel.setBackground(new java.awt.Color(255, 255, 255)); jLabel11.setFont(new java.awt.Font("Lucida Grande", 1, 22)); // NOI18N jLabel11.setText("Menu"); jLabel13.setText("Chicken Enchiladas"); jLabel14.setText("Basil Pasta"); jLabel15.setText("Chicken Salad"); jLabel16.setText("Chicken Bellagio"); jLabel17.setText("Cheesecake"); jLabel18.setText("Soft Drinks"); CC_q0.setText(" "); CC_q0.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CC_q0ActionPerformed(evt); } }); CC_q1.setText(" "); CC_q1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CC_q1ActionPerformed(evt); } }); CC_q2.setText(" "); CC_q2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CC_q2ActionPerformed(evt); } }); jLabel23.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel23.setText("Calories"); jLabel24.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel24.setText("Price"); jLabel25.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel25.setText("Items"); jLabel40.setText("1360"); jLabel41.setText("11.75"); jLabel42.setText("1740"); jLabel43.setText("11.75"); jLabel44.setText("1540"); jLabel45.setText("11.75"); jLabel46.setText("2130"); jLabel47.setText("12.75"); jLabel48.setText("300"); jLabel49.setText("6.75"); jLabel50.setText("160"); jLabel51.setText("3.75"); CC_q3.setText(" "); CC_q3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CC_q3ActionPerformed(evt); } }); CC_q4.setText(" "); CC_q4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CC_q4ActionPerformed(evt); } }); CC_q5.setText(" "); CC_q5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CC_q5ActionPerformed(evt); } }); jLabel12.setText("Your total Charge is:"); jLabel19.setText("Total Calorie is:"); jButton6.setText("Get total"); jButton6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton6ActionPerformed(evt); } }); order.setText("Order"); order.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { orderActionPerformed(evt); } }); jLabel66.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel66.setText("Quantity"); CC_total_c.setText(" "); CC_total_c.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { CC_total_cActionPerformed(evt); } }); CC_total_f.setText(" "); javax.swing.GroupLayout MenuPanelLayout = new javax.swing.GroupLayout(MenuPanel); MenuPanel.setLayout(MenuPanelLayout); MenuPanelLayout.setHorizontalGroup(MenuPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanelLayout.createSequentialGroup().addGap(60, 60, 60) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel19).addComponent(jLabel12)) .addGap(66, 66, 66) .addComponent(CC_total_f, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(36, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanelLayout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel14, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel15, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanelLayout.createSequentialGroup().addGroup(MenuPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel16).addComponent(jLabel17) .addComponent(jLabel18)).addGap(2, 2, 2)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanelLayout .createSequentialGroup().addComponent(jLabel25).addGap(21, 21, 21))) .addGap(20, 20, 20) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel11).addComponent(jLabel23)) .addGap(28, 28, 28).addComponent(jLabel24).addGap(18, 18, 18).addComponent(jLabel66) .addContainerGap()) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanelLayout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel42, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel40, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel44, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel46, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel48, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel50, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jButton6, javax.swing.GroupLayout.Alignment.TRAILING)) .addGap(43, 43, 43) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(MenuPanelLayout.createSequentialGroup() .addGroup(MenuPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel41, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel43, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel45, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel47, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel49, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel51, javax.swing.GroupLayout.Alignment.TRAILING)) .addGap(26, 26, 26) .addGroup(MenuPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(CC_q0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(CC_q1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(CC_q2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(CC_q3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(CC_q4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(CC_q5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(MenuPanelLayout.createSequentialGroup() .addGroup(MenuPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel20, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel52, javax.swing.GroupLayout.Alignment.TRAILING)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(order).addComponent(CC_total_c, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(20, 20, 20))) .addGap(20, 20, 20))); MenuPanelLayout.setVerticalGroup(MenuPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanelLayout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel11).addGap(18, 18, 18) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel23).addComponent(jLabel24).addComponent(jLabel25) .addComponent(jLabel66)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel15).addComponent(jLabel40).addComponent(jLabel41) .addComponent(CC_q0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel14).addComponent(jLabel42).addComponent(jLabel43) .addComponent(CC_q1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel13).addComponent(jLabel44).addComponent(jLabel45) .addComponent(CC_q2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel16).addComponent(jLabel46).addComponent(jLabel47) .addComponent(CC_q3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel17).addComponent(jLabel48).addComponent(jLabel49) .addComponent(CC_q4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel18).addComponent(jLabel51) .addComponent(CC_q5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel50)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel12).addComponent(jLabel20).addComponent(CC_total_f, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel19).addComponent(jLabel52) .addComponent(CC_total_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(order).addComponent(jButton6)) .addGap(39, 39, 39))); Cheesecake.add(MenuPanel); MenuPanel.setBounds(420, 210, 380, 390); jLabel21.setIcon( new javax.swing.ImageIcon(getClass().getResource("/CampusSmartCafe/view/Cheesecake3.jpg"))); // NOI18N jLabel21.setMaximumSize(new java.awt.Dimension(1000, 800)); jLabel21.setMinimumSize(new java.awt.Dimension(1000, 800)); jLabel21.setPreferredSize(new java.awt.Dimension(1000, 800)); Cheesecake.add(jLabel21); jLabel21.setBounds(-180, 0, 1080, 800); MainPanel.add(Cheesecake, "card5"); InAndOut.setLayout(null); Logout5.setText("Log Out"); Logout5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Logout5ActionPerformed(evt); } }); InAndOut.add(Logout5); Logout5.setBounds(30, 10, 94, 29); MapCafe4.setText("Map"); MapCafe4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MapCafe4ActionPerformed(evt); } }); InAndOut.add(MapCafe4); MapCafe4.setBounds(40, 40, 75, 29); MenuPanel2.setBackground(new java.awt.Color(255, 255, 255)); jLabel67.setFont(new java.awt.Font("Lucida Grande", 1, 22)); // NOI18N jLabel67.setText("Menu"); jLabel68.setText("Hamburger"); jLabel69.setText("Cheeseburger"); jLabel70.setText("Double-Double"); jLabel71.setText("Franch Fries"); jLabel72.setText("Coffee"); jLabel73.setText("Coke"); IO_q1.setText(" "); IO_q1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IO_q1ActionPerformed(evt); } }); IO_q2.setText(" "); IO_q2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IO_q2ActionPerformed(evt); } }); IO_q3.setText(" "); IO_q3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IO_q3ActionPerformed(evt); } }); jLabel74.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel74.setText("Calories"); jLabel75.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel75.setText("Price"); jLabel76.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel76.setText("Items"); jLabel77.setText("670"); jLabel78.setText("3.25"); jLabel79.setText("480"); jLabel80.setText("2.25"); jLabel81.setText("390"); jLabel82.setText("1.75"); jLabel83.setText("395"); jLabel84.setText("1.5"); jLabel85.setText("50"); jLabel86.setText("1.25"); jLabel87.setText("140"); jLabel88.setText("1.25"); IO_q4.setText(" "); IO_q4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IO_q4ActionPerformed(evt); } }); IO_q5.setText(" "); IO_q5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IO_q5ActionPerformed(evt); } }); IO_q6.setText(" "); IO_q6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IO_q6ActionPerformed(evt); } }); jLabel89.setText("Your total Charge is:"); jLabel90.setText("Total Calorie is:"); IO_gettotal.setText("Get total"); IO_gettotal.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IO_gettotalActionPerformed(evt); } }); IO_order.setText("Order"); IO_order.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IO_orderActionPerformed(evt); } }); jLabel93.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel93.setText("Quantity"); IO_totalfunds.setText(" "); IO_totalfunds.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IO_totalfundsActionPerformed(evt); } }); IO_totalcalories.setText(" "); IO_totalcalories.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IO_totalcaloriesActionPerformed(evt); } }); javax.swing.GroupLayout MenuPanel2Layout = new javax.swing.GroupLayout(MenuPanel2); MenuPanel2.setLayout(MenuPanel2Layout); MenuPanel2Layout.setHorizontalGroup(MenuPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel2Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(MenuPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel84) .addGroup(MenuPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel80).addComponent(jLabel78).addComponent(jLabel82)) .addComponent(jLabel86).addComponent(jLabel88)) .addGap(36, 36, 36) .addGroup(MenuPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(IO_q2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(IO_q1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(IO_q3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(IO_q4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(IO_q5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(IO_q6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(28, 28, 28)) .addGroup(MenuPanel2Layout.createSequentialGroup().addGroup(MenuPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel2Layout .createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(MenuPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel69, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel70, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel68, javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel2Layout.createSequentialGroup() .addGroup(MenuPanel2Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel71).addComponent(jLabel72) .addComponent(jLabel73)) .addGap(2, 2, 2)) .addComponent(jLabel76, javax.swing.GroupLayout.Alignment.TRAILING)) .addGap(20, 20, 20) .addGroup(MenuPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel2Layout.createSequentialGroup().addGap(20, 20, 20) .addGroup(MenuPanel2Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel67).addComponent(jLabel74)) .addGap(28, 28, 28).addComponent(jLabel75).addGap(18, 18, 18) .addComponent(jLabel93)) .addGroup(MenuPanel2Layout.createSequentialGroup().addGap(41, 41, 41) .addGroup(MenuPanel2Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel79).addComponent(jLabel81) .addComponent(jLabel77).addComponent(jLabel83) .addComponent(jLabel85).addComponent(jLabel87))))) .addGroup(MenuPanel2Layout.createSequentialGroup().addGap(60, 60, 60) .addGroup(MenuPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel90).addComponent(jLabel89)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(MenuPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(IO_totalfunds, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(IO_totalcalories, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(MenuPanel2Layout.createSequentialGroup().addGap(80, 80, 80) .addComponent(IO_gettotal).addGap(68, 68, 68).addComponent(IO_order))) .addContainerGap())); MenuPanel2Layout.setVerticalGroup(MenuPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel2Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel67).addGap(18, 18, 18) .addGroup(MenuPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel74).addComponent(jLabel75).addComponent(jLabel76) .addComponent(jLabel93)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel70).addComponent(jLabel77).addComponent(jLabel78) .addComponent(IO_q1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel69).addComponent(jLabel79).addComponent(jLabel80) .addComponent(IO_q2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel68).addComponent(jLabel81).addComponent(jLabel82) .addComponent(IO_q3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel71).addComponent(jLabel83).addComponent(jLabel84) .addComponent(IO_q4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel72).addComponent(jLabel85).addComponent(jLabel86) .addComponent(IO_q5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel73).addComponent(jLabel88) .addComponent(IO_q6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel87)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel89).addComponent(IO_totalfunds, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel90) .addComponent(IO_totalcalories, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(IO_gettotal).addComponent(IO_order)) .addGap(39, 39, 39))); InAndOut.add(MenuPanel2); MenuPanel2.setBounds(420, 210, 380, 390); Profile3.setText("Profile"); Profile3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Profile3ActionPerformed(evt); } }); InAndOut.add(Profile3); Profile3.setBounds(30, 70, 97, 29); jLabel22.setIcon( new javax.swing.ImageIcon(getClass().getResource("/CampusSmartCafe/view/InOutBurger2.jpg"))); // NOI18N jLabel22.setText(" "); InAndOut.add(jLabel22); jLabel22.setBounds(-20, -190, 930, 790); MainPanel.add(InAndOut, "card6"); VM.setLayout(null); MapCafe6.setText("Map"); MapCafe6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MapCafe6ActionPerformed(evt); } }); VM.add(MapCafe6); MapCafe6.setBounds(40, 40, 75, 29); Logout6.setText("Log Out"); Logout6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Logout6ActionPerformed(evt); } }); VM.add(Logout6); Logout6.setBounds(30, 10, 94, 29); MenuPanel6.setBackground(new java.awt.Color(255, 255, 255)); jLabel172.setFont(new java.awt.Font("Lucida Grande", 1, 22)); // NOI18N jLabel172.setText("Menu"); jLabel173.setText("Mixed Nuts"); jLabel174.setText("Cheetos Puffs"); jLabel175.setText("Real Fruit Pie"); jLabel176.setText("Potato Chips"); jLabel177.setText("Coffee"); jLabel178.setText("Coke"); VM_q0.setText(" "); VM_q0.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { VM_q0ActionPerformed(evt); } }); VM_q1.setText(" "); VM_q1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { VM_q1ActionPerformed(evt); } }); VM_q2.setText(" "); VM_q2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { VM_q2ActionPerformed(evt); } }); jLabel179.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel179.setText("Calories"); jLabel180.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel180.setText("Price"); jLabel181.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel181.setText("Items"); jLabel182.setText("270"); jLabel183.setText("2.75"); jLabel184.setText("300"); jLabel185.setText("2.5"); jLabel186.setText("200"); jLabel187.setText("1.75"); jLabel188.setText("320"); jLabel189.setText("1.5"); jLabel190.setText("50"); jLabel191.setText("1.25"); jLabel192.setText("140"); jLabel193.setText("1.25"); VM_q3.setText(" "); VM_q3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { VM_q3ActionPerformed(evt); } }); VM_q4.setText(" "); VM_q4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { VM_q4ActionPerformed(evt); } }); VM_q5.setText(" "); VM_q5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { VM_q5ActionPerformed(evt); } }); jLabel194.setText("Your total Charge is:"); jLabel195.setText("Total Calorie is:"); IO_gettotal2.setText("Get total"); IO_gettotal2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IO_gettotal2ActionPerformed(evt); } }); IO_order2.setText("Order"); IO_order2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IO_order2ActionPerformed(evt); } }); jLabel196.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel196.setText("Quantity"); VM_total_f.setText(" "); VM_total_f.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { VM_total_fActionPerformed(evt); } }); VM_total_c.setText(" "); VM_total_c.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { VM_total_cActionPerformed(evt); } }); javax.swing.GroupLayout MenuPanel6Layout = new javax.swing.GroupLayout(MenuPanel6); MenuPanel6.setLayout(MenuPanel6Layout); MenuPanel6Layout.setHorizontalGroup(MenuPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel6Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(MenuPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(MenuPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel185).addComponent(jLabel183).addComponent(jLabel187)) .addComponent(jLabel191).addComponent(jLabel193)) .addGap(36, 36, 36) .addGroup(MenuPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(VM_q1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(VM_q0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(VM_q2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(VM_q3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(VM_q4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(VM_q5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(28, 28, 28)) .addGroup(MenuPanel6Layout.createSequentialGroup().addGroup(MenuPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel6Layout .createSequentialGroup().addContainerGap(15, Short.MAX_VALUE) .addGroup(MenuPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel174, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel175, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel173, javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel6Layout.createSequentialGroup() .addGroup(MenuPanel6Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel176).addComponent(jLabel177) .addComponent(jLabel178)) .addGap(2, 2, 2)) .addComponent(jLabel181, javax.swing.GroupLayout.Alignment.TRAILING)) .addGap(31, 31, 31) .addGroup(MenuPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel6Layout.createSequentialGroup().addGap(20, 20, 20) .addGroup(MenuPanel6Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel172).addComponent(jLabel179)) .addGap(28, 28, 28).addComponent(jLabel180).addGap(18, 18, 18) .addComponent(jLabel196)) .addGroup(MenuPanel6Layout.createSequentialGroup().addGap(41, 41, 41) .addGroup(MenuPanel6Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel184).addComponent(jLabel186) .addComponent(jLabel182).addComponent(jLabel188) .addComponent(jLabel190).addComponent(jLabel192)) .addGap(60, 60, 60).addComponent(jLabel189)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel6Layout.createSequentialGroup().addComponent(IO_order2) .addGap(63, 63, 63)))) .addGroup(MenuPanel6Layout.createSequentialGroup().addGap(60, 60, 60) .addGroup(MenuPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel194) .addGroup(MenuPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(IO_gettotal2).addComponent(jLabel195))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(MenuPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(VM_total_f, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(VM_total_c, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap())); MenuPanel6Layout.setVerticalGroup(MenuPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel6Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel172).addGap(18, 18, 18) .addGroup(MenuPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel179).addComponent(jLabel180).addComponent(jLabel181) .addComponent(jLabel196)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel175).addComponent(jLabel182).addComponent(jLabel183) .addComponent(VM_q0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel174).addComponent(jLabel184).addComponent(jLabel185) .addComponent(VM_q1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel173).addComponent(jLabel186).addComponent(jLabel187) .addComponent(VM_q2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel176).addComponent(jLabel188).addComponent(jLabel189) .addComponent(VM_q3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel177).addComponent(jLabel190).addComponent(jLabel191) .addComponent(VM_q4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel178).addComponent(jLabel193) .addComponent(VM_q5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel192)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel194).addComponent(VM_total_f, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel195) .addComponent(VM_total_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(IO_gettotal2).addComponent(IO_order2)) .addGap(39, 39, 39))); VM.add(MenuPanel6); MenuPanel6.setBounds(420, 210, 380, 390); Profile5.setText("Profile"); Profile5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Profile5ActionPerformed(evt); } }); VM.add(Profile5); Profile5.setBounds(30, 70, 97, 29); jLabel65.setIcon(new javax.swing.ImageIcon(getClass().getResource("/CampusSmartCafe/view/VM.jpg"))); // NOI18N jLabel65.setText(" "); VM.add(jLabel65); jLabel65.setBounds(0, 0, 880, 680); MainPanel.add(VM, "card11"); ToGo.setLayout(null); MenuPanel4.setBackground(new java.awt.Color(255, 255, 255)); jLabel117.setFont(new java.awt.Font("Lucida Grande", 1, 22)); // NOI18N jLabel117.setText("Menu"); jLabel118.setText("Roast Beef"); jLabel119.setText("Turkey & Cheese"); jLabel120.setText("Ham & Cheese"); jLabel121.setText("The Italian"); jLabel122.setText("Chicken Salad"); jLabel123.setText("MeatBall"); Togo_q0.setText(" "); Togo_q0.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Togo_q0ActionPerformed(evt); } }); Togo_q1.setText(" "); Togo_q1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Togo_q1ActionPerformed(evt); } }); Togo_q2.setText(" "); Togo_q2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Togo_q2ActionPerformed(evt); } }); jLabel124.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel124.setText("Calories"); jLabel125.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel125.setText("Price"); jLabel126.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel126.setText("Items"); jLabel127.setText("520"); jLabel128.setText("6.25"); jLabel129.setText("520"); jLabel130.setText("6.75"); jLabel131.setText("580"); jLabel132.setText("6.75"); jLabel133.setText("780"); jLabel134.setText("6.25"); jLabel135.setText("540"); jLabel136.setText("5.75"); jLabel137.setText("690"); jLabel138.setText("6.75"); Togo_q3.setText(" "); Togo_q3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Togo_q3ActionPerformed(evt); } }); Togo_q4.setText(" "); Togo_q4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Togo_q4ActionPerformed(evt); } }); Togo_q5.setText(" "); Togo_q5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Togo_q5ActionPerformed(evt); } }); jLabel139.setText("Your total Charge is:"); jLabel140.setText("Total Calorie is:"); IO_gettotal1.setText("Get total"); IO_gettotal1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IO_gettotal1ActionPerformed(evt); } }); IO_order1.setText("Order"); IO_order1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { IO_order1ActionPerformed(evt); } }); jLabel141.setFont(new java.awt.Font("Lucida Grande", 1, 16)); // NOI18N jLabel141.setText("Quantity"); Togo_total_f.setText(" "); Togo_total_f.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Togo_total_fActionPerformed(evt); } }); Togo_total_c.setText(" "); Togo_total_c.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Togo_total_cActionPerformed(evt); } }); javax.swing.GroupLayout MenuPanel4Layout = new javax.swing.GroupLayout(MenuPanel4); MenuPanel4.setLayout(MenuPanel4Layout); MenuPanel4Layout.setHorizontalGroup(MenuPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel4Layout.createSequentialGroup().addGroup(MenuPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel4Layout.createSequentialGroup().addGroup(MenuPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel4Layout.createSequentialGroup().addGap(17, 17, 17) .addGroup(MenuPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel119).addComponent(jLabel120) .addComponent(jLabel118) .addGroup(MenuPanel4Layout.createSequentialGroup() .addGroup(MenuPanel4Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel121).addComponent(jLabel122) .addComponent(jLabel123)) .addGap(2, 2, 2)))) .addGroup(MenuPanel4Layout .createSequentialGroup().addGap(42, 42, 42).addComponent(jLabel126))) .addGap(5, 5, 5) .addGroup(MenuPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel4Layout.createSequentialGroup().addGap(20, 20, 20) .addGroup(MenuPanel4Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel117).addComponent(jLabel124)) .addGap(28, 28, 28).addComponent(jLabel125).addGap(18, 18, 18) .addComponent(jLabel141)) .addGroup(MenuPanel4Layout.createSequentialGroup().addGap(41, 41, 41) .addGroup(MenuPanel4Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel129).addComponent(jLabel131) .addComponent(jLabel127).addComponent(jLabel133) .addComponent(jLabel135).addComponent(jLabel137))))) .addGroup(MenuPanel4Layout.createSequentialGroup().addGap(60, 60, 60) .addGroup(MenuPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(MenuPanel4Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 198, Short.MAX_VALUE) .addGroup(MenuPanel4Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel134) .addGroup(MenuPanel4Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel130).addComponent(jLabel128) .addComponent(jLabel132)) .addComponent(jLabel136).addComponent(jLabel138)) .addGap(36, 36, 36) .addGroup(MenuPanel4Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(Togo_q1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Togo_q0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Togo_q2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Togo_q3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Togo_q4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Togo_q5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(19, 19, 19)) .addGroup(MenuPanel4Layout.createSequentialGroup().addGroup(MenuPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel140).addComponent(jLabel139)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 103, Short.MAX_VALUE) .addGroup(MenuPanel4Layout .createParallelGroup( javax.swing.GroupLayout.Alignment.LEADING) .addComponent(Togo_total_f, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(Togo_total_c, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel4Layout.createSequentialGroup().addComponent(IO_gettotal1) .addGap(57, 57, 57).addComponent(IO_order1) .addGap(0, 0, Short.MAX_VALUE))))) .addContainerGap(9, Short.MAX_VALUE))); MenuPanel4Layout.setVerticalGroup(MenuPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, MenuPanel4Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel117).addGap(18, 18, 18) .addGroup(MenuPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel124).addComponent(jLabel125).addComponent(jLabel126) .addComponent(jLabel141)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel120).addComponent(jLabel127).addComponent(jLabel128) .addComponent(Togo_q0, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel119).addComponent(jLabel129).addComponent(jLabel130) .addComponent(Togo_q1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel118).addComponent(jLabel131).addComponent(jLabel132) .addComponent(Togo_q2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel121).addComponent(jLabel133).addComponent(jLabel134) .addComponent(Togo_q3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel122).addComponent(jLabel135).addComponent(jLabel136) .addComponent(Togo_q4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(MenuPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel123).addComponent(jLabel138) .addComponent(Togo_q5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel137)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel139).addComponent(Togo_total_f, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel140) .addComponent(Togo_total_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(MenuPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(IO_order1).addComponent(IO_gettotal1)) .addGap(39, 39, 39))); ToGo.add(MenuPanel4); MenuPanel4.setBounds(420, 210, 380, 390); Logout7.setText("Log Out"); Logout7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Logout7ActionPerformed(evt); } }); ToGo.add(Logout7); Logout7.setBounds(30, 10, 94, 29); MapCafe5.setText("Map"); MapCafe5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { MapCafe5ActionPerformed(evt); } }); ToGo.add(MapCafe5); MapCafe5.setBounds(40, 40, 75, 29); Profile4.setText("Profile"); Profile4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Profile4ActionPerformed(evt); } }); ToGo.add(Profile4); Profile4.setBounds(30, 70, 97, 29); jLabel39.setIcon(new javax.swing.ImageIcon(getClass().getResource("/CampusSmartCafe/view/togos.jpg"))); // NOI18N jLabel39.setText(" "); ToGo.add(jLabel39); jLabel39.setBounds(-40, -90, 1000, 770); MainPanel.add(ToGo, "card7"); getContentPane().add(MainPanel); pack(); }// </editor-fold>//GEN-END:initComponents private void usernameInActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_usernameInActionPerformed // TODO add your handling code here: }//GEN-LAST:event_usernameInActionPerformed private void LoginButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LoginButtonActionPerformed acc = AccountDAO.loadAccount(usernameIn.getText().trim(), passwordIn.getText().trim()); if (acc != null) { MainPanel.removeAll(); MainPanel.add(Map); MainPanel.repaint(); MainPanel.revalidate();// TODO add your handling code here: } else { JOptionPane.showMessageDialog(null, "Wrong User name or Password."); } usernameIn.setText(" "); passwordIn.setText(null); }//GEN-LAST:event_LoginButtonActionPerformed private void createNewAccActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_createNewAccActionPerformed usernameIn.setText(" "); passwordIn.setText(null); MainPanel.removeAll(); MainPanel.add(CreateAccount); MainPanel.repaint(); MainPanel.revalidate(); // TODO add your handling code here: }//GEN-LAST:event_createNewAccActionPerformed private void Cafe1ButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Cafe1ButtonActionPerformed MainPanel.removeAll(); MainPanel.add(Cheesecake); MainPanel.repaint(); MainPanel.revalidate(); // TODO add your handling code here: }//GEN-LAST:event_Cafe1ButtonActionPerformed private void ToGoButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ToGoButtonActionPerformed MainPanel.removeAll(); MainPanel.add(ToGo); MainPanel.repaint(); MainPanel.revalidate(); // TODO add your handling code here: }//GEN-LAST:event_ToGoButtonActionPerformed private void PizzaButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_PizzaButtonActionPerformed MainPanel.removeAll(); MainPanel.add(Pizza); MainPanel.repaint(); MainPanel.revalidate(); // TODO add your handling code here: }//GEN-LAST:event_PizzaButtonActionPerformed private void RamenButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_RamenButtonActionPerformed MainPanel.removeAll(); MainPanel.add(Ramen); MainPanel.repaint(); MainPanel.revalidate(); // TODO add your handling code here: }//GEN-LAST:event_RamenButtonActionPerformed private void backToLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backToLoginActionPerformed usernameIn_N.setText(" "); passwordIn_N1.setText(null); passwordIn_Con1.setText(null); MainPanel.removeAll(); MainPanel.add(Login); MainPanel.repaint(); MainPanel.revalidate();// TODO add your handling code here: }//GEN-LAST:event_backToLoginActionPerformed private void CC_q0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CC_q0ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_CC_q0ActionPerformed private void CC_q1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CC_q1ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_CC_q1ActionPerformed private void CC_q2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CC_q2ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_CC_q2ActionPerformed private void InNOutButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_InNOutButtonActionPerformed MainPanel.removeAll(); MainPanel.add(InAndOut); MainPanel.repaint(); MainPanel.revalidate(); // TODO add your handling code here: }//GEN-LAST:event_InNOutButtonActionPerformed private void CC_q3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CC_q3ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_CC_q3ActionPerformed private void CC_q4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CC_q4ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_CC_q4ActionPerformed private void CC_q5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CC_q5ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_CC_q5ActionPerformed private void ProfileActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ProfileActionPerformed // setting textfields on profile page before loading cur_funds_s.setText(acc.getExpenseProf().getLeftFunds() + ""); cur_calorie_s.setText(acc.getDietaryProf().getLeftCalorie() + ""); total_funds_s.setText(acc.getExpenseProf().getTotalFunds() + ""); total_calorie_s.setText(acc.getDietaryProf().getTotalCalorie() + ""); MainPanel.removeAll(); MainPanel.add(ProfilePanel); MainPanel.repaint(); MainPanel.revalidate();// TODO add your handling code here: }//GEN-LAST:event_ProfileActionPerformed private void MapCafe1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MapCafe1ActionPerformed MainPanel.removeAll(); MainPanel.add(Map); MainPanel.repaint(); MainPanel.revalidate(); // TODO add your handling code here: }//GEN-LAST:event_MapCafe1ActionPerformed private void MapCafe2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MapCafe2ActionPerformed MainPanel.removeAll(); MainPanel.add(Map); MainPanel.repaint(); MainPanel.revalidate(); // TODO add your handling code here: }//GEN-LAST:event_MapCafe2ActionPerformed private void Profile1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Profile1ActionPerformed cur_funds_s.setText(acc.getExpenseProf().getLeftFunds() + ""); cur_calorie_s.setText(acc.getDietaryProf().getLeftCalorie() + ""); total_funds_s.setText(acc.getExpenseProf().getTotalFunds() + ""); total_calorie_s.setText(acc.getDietaryProf().getTotalCalorie() + ""); MainPanel.removeAll(); MainPanel.add(ProfilePanel); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_Profile1ActionPerformed private void MapCafe3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MapCafe3ActionPerformed MainPanel.removeAll(); MainPanel.add(Map); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_MapCafe3ActionPerformed private void Profile2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Profile2ActionPerformed // setting textfields on profile page before loading cur_funds_s.setText(acc.getExpenseProf().getLeftFunds() + ""); cur_calorie_s.setText(acc.getDietaryProf().getLeftCalorie() + ""); total_funds_s.setText(acc.getExpenseProf().getTotalFunds() + ""); total_calorie_s.setText(acc.getDietaryProf().getTotalCalorie() + ""); MainPanel.removeAll(); MainPanel.add(ProfilePanel); MainPanel.repaint(); MainPanel.revalidate(); // TODO add your handling code here: }//GEN-LAST:event_Profile2ActionPerformed private void MapCafe4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MapCafe4ActionPerformed MainPanel.removeAll(); MainPanel.add(Map); MainPanel.repaint(); MainPanel.revalidate(); // TODO add your handling code here: }//GEN-LAST:event_MapCafe4ActionPerformed private void Profile3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Profile3ActionPerformed cur_funds_s.setText(acc.getExpenseProf().getLeftFunds() + ""); cur_calorie_s.setText(acc.getDietaryProf().getLeftCalorie() + ""); total_funds_s.setText(acc.getExpenseProf().getTotalFunds() + ""); total_calorie_s.setText(acc.getDietaryProf().getTotalCalorie() + ""); MainPanel.removeAll(); MainPanel.add(ProfilePanel); MainPanel.repaint(); MainPanel.revalidate();// TODO add your handling code here: }//GEN-LAST:event_Profile3ActionPerformed private void MapCafe5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MapCafe5ActionPerformed MainPanel.removeAll(); MainPanel.add(Map); MainPanel.repaint(); MainPanel.revalidate(); // TODO add your handling code here: }//GEN-LAST:event_MapCafe5ActionPerformed private void Profile4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Profile4ActionPerformed // setting textfields on profile page before loading cur_funds_s.setText(acc.getExpenseProf().getLeftFunds() + ""); cur_calorie_s.setText(acc.getDietaryProf().getLeftCalorie() + ""); total_funds_s.setText(acc.getExpenseProf().getTotalFunds() + ""); total_calorie_s.setText(acc.getDietaryProf().getTotalCalorie() + ""); MainPanel.removeAll(); MainPanel.add(ProfilePanel); MainPanel.repaint(); MainPanel.revalidate();// TODO add your handling code here: }//GEN-LAST:event_Profile4ActionPerformed private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed MainPanel.removeAll(); MainPanel.add(VM); MainPanel.repaint(); MainPanel.revalidate();// TODO add your handling code here: }//GEN-LAST:event_jButton10ActionPerformed private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed // TODO add your handling code here: MainPanel.removeAll(); MainPanel.add(VM); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_jButton11ActionPerformed private void total_f_inputActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_total_f_inputActionPerformed // TODO add your handling code here: }//GEN-LAST:event_total_f_inputActionPerformed private void subbmitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_subbmitActionPerformed // TODO add your handling code here: if (!passwordIn_N1.getText().trim().equals(passwordIn_Con1.getText().trim())) { JOptionPane.showMessageDialog(null, "Different passwords"); usernameIn_N.setText(" "); passwordIn_N1.setText(null); passwordIn_Con1.setText(null); return; } acc = AccountDAO.createNewAccount(usernameIn_N.getText().trim(), passwordIn_N1.getText().trim()); if (acc == null) { JOptionPane.showMessageDialog(null, "Invalid user name"); // usernameIn_N.setText(" "); // passwordIn_N.setText(" "); // passwordIn_Con.setText(" "); } else { JOptionPane.showMessageDialog(null, "New account created"); MainPanel.removeAll(); MainPanel.add(Login); MainPanel.repaint(); MainPanel.revalidate(); } usernameIn_N.setText(" "); passwordIn_N1.setText(null); passwordIn_Con1.setText(null); }//GEN-LAST:event_subbmitActionPerformed private void IO_q1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IO_q1ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_IO_q1ActionPerformed private void IO_q2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IO_q2ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_IO_q2ActionPerformed private void IO_q3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IO_q3ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_IO_q3ActionPerformed private void IO_q4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IO_q4ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_IO_q4ActionPerformed private void IO_q5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IO_q5ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_IO_q5ActionPerformed private void IO_q6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IO_q6ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_IO_q6ActionPerformed private void IO_gettotalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IO_gettotalActionPerformed // TODO add your handling code here: int[] quantity = new int[6]; if (IO_q1.getText().trim().length() != 0) { quantity[0] = Integer.parseInt(IO_q1.getText().trim()); } if (IO_q2.getText().trim().length() != 0) { quantity[1] = Integer.parseInt(IO_q2.getText().trim()); } if (IO_q3.getText().trim().length() != 0) { quantity[2] = Integer.parseInt(IO_q3.getText().trim()); } if (IO_q4.getText().trim().length() != 0) { quantity[3] = Integer.parseInt(IO_q4.getText().trim()); } if (IO_q5.getText().trim().length() != 0) { quantity[4] = Integer.parseInt(IO_q5.getText().trim()); } if (IO_q6.getText().trim().length() != 0) { quantity[5] = Integer.parseInt(IO_q6.getText().trim()); } float[] prices = { 3.25f, 2.25f, 1.75f, 1.5f, 1.25f, 1, 25f }; int[] calories = { 670, 480, 390, 395, 50, 140 }; float total_f = 0; int total_c = 0; for (int i = 0; i < 6; i++) { total_f += quantity[i] * prices[i]; total_c += quantity[i] * calories[i]; } IO_totalfunds.setText(total_f + ""); IO_totalcalories.setText(total_c + ""); }//GEN-LAST:event_IO_gettotalActionPerformed private void IO_orderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IO_orderActionPerformed // TODO add your handling code here: int[] quantity = new int[6]; if (IO_q1.getText().trim().length() != 0) { quantity[0] = Integer.parseInt(IO_q1.getText().trim()); } if (IO_q2.getText().trim().length() != 0) { quantity[1] = Integer.parseInt(IO_q2.getText().trim()); } if (IO_q3.getText().trim().length() != 0) { quantity[2] = Integer.parseInt(IO_q3.getText().trim()); } if (IO_q4.getText().trim().length() != 0) { quantity[3] = Integer.parseInt(IO_q4.getText().trim()); } if (IO_q5.getText().trim().length() != 0) { quantity[4] = Integer.parseInt(IO_q5.getText().trim()); } if (IO_q6.getText().trim().length() != 0) { quantity[5] = Integer.parseInt(IO_q6.getText().trim()); } float[] prices = { 3.25f, 2.25f, 1.75f, 1.5f, 1.25f, 1, 25f }; int[] calories = { 670, 480, 390, 395, 50, 140 }; float total_f = 0; int total_c = 0; for (int i = 0; i < 6; i++) { total_f += quantity[i] * prices[i]; total_c += quantity[i] * calories[i]; } if (total_c > acc.getDietaryProf().getLeftCalorie()) { JOptionPane.showMessageDialog(null, "You don't have enough Calorie today,\nTry tomorrow :)"); } else if (total_f > acc.getExpenseProf().getLeftFunds()) { JOptionPane.showMessageDialog(null, "You don't have enough money :("); } else { AccountDAO.updateLeft(acc, total_f, total_c); JOptionPane.showMessageDialog(null, "You food will be ready at " + (new Time(System.currentTimeMillis() + 12 * 60 * 1000).toString()) + "\nCafe address is:\n" + "3041 Stevens Creek Blvd\n" + "Santa Clara, CA 95050"); IO_q1.setText(" "); IO_q2.setText(" "); IO_q3.setText(" "); IO_q4.setText(" "); IO_q5.setText(" "); IO_q6.setText(" "); IO_totalfunds.setText(" "); IO_totalcalories.setText(" "); } }//GEN-LAST:event_IO_orderActionPerformed private void IO_totalfundsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IO_totalfundsActionPerformed // TODO add your handling code here: }//GEN-LAST:event_IO_totalfundsActionPerformed private void IO_totalcaloriesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IO_totalcaloriesActionPerformed // TODO add your handling code here: }//GEN-LAST:event_IO_totalcaloriesActionPerformed private void Ramen_q0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ramen_q0ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Ramen_q0ActionPerformed private void Ramen_q1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ramen_q1ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Ramen_q1ActionPerformed private void Ramen_q2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ramen_q2ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Ramen_q2ActionPerformed private void Ramen_q3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ramen_q3ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Ramen_q3ActionPerformed private void Ramen_q4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ramen_q4ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Ramen_q4ActionPerformed private void Ramen_q5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ramen_q5ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Ramen_q5ActionPerformed private void Ramen_gettotalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ramen_gettotalActionPerformed // TODO add your handling code here: int[] quantity = new int[6]; if (Ramen_q0.getText().trim().length() != 0) { quantity[0] = Integer.parseInt(Ramen_q0.getText().trim()); } if (Ramen_q1.getText().trim().length() != 0) { quantity[1] = Integer.parseInt(Ramen_q1.getText().trim()); } if (Ramen_q2.getText().trim().length() != 0) { quantity[2] = Integer.parseInt(Ramen_q2.getText().trim()); } if (Ramen_q3.getText().trim().length() != 0) { quantity[3] = Integer.parseInt(Ramen_q3.getText().trim()); } if (Ramen_q4.getText().trim().length() != 0) { quantity[4] = Integer.parseInt(Ramen_q4.getText().trim()); } if (Ramen_q5.getText().trim().length() != 0) { quantity[5] = Integer.parseInt(Ramen_q5.getText().trim()); } float[] prices = { 9.25f, 8.75f, 8.75f, 4.75f, 8.75f, 4.25f }; int[] calories = { 390, 390, 390, 395, 250, 140 }; float total_f = 0; int total_c = 0; for (int i = 0; i < 6; i++) { total_f += quantity[i] * prices[i]; total_c += quantity[i] * calories[i]; } Ramen_totalfunds.setText(total_f + ""); Ramen_totalcalories.setText(total_c + ""); }//GEN-LAST:event_Ramen_gettotalActionPerformed private void Ramen_orderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ramen_orderActionPerformed // TODO add your handling code here: int[] quantity = new int[6]; if (Ramen_q0.getText().trim().length() != 0) { quantity[0] = Integer.parseInt(Ramen_q0.getText().trim()); } if (Ramen_q1.getText().trim().length() != 0) { quantity[1] = Integer.parseInt(Ramen_q1.getText().trim()); } if (Ramen_q2.getText().trim().length() != 0) { quantity[2] = Integer.parseInt(Ramen_q2.getText().trim()); } if (Ramen_q3.getText().trim().length() != 0) { quantity[3] = Integer.parseInt(Ramen_q3.getText().trim()); } if (Ramen_q4.getText().trim().length() != 0) { quantity[4] = Integer.parseInt(Ramen_q4.getText().trim()); } if (Ramen_q5.getText().trim().length() != 0) { quantity[5] = Integer.parseInt(Ramen_q5.getText().trim()); } float[] prices = { 9.25f, 8.75f, 8.75f, 4.75f, 8.75f, 4.25f }; int[] calories = { 390, 390, 390, 395, 250, 140 }; float total_f = 0; int total_c = 0; for (int i = 0; i < 6; i++) { total_f += quantity[i] * prices[i]; total_c += quantity[i] * calories[i]; } if (total_c > acc.getDietaryProf().getLeftCalorie()) { JOptionPane.showMessageDialog(null, "You don't have enough Calorie today,\nTry tomorrow :)"); } else if (total_f > acc.getExpenseProf().getLeftFunds()) { JOptionPane.showMessageDialog(null, "You don't have enough money :("); } else { AccountDAO.updateLeft(acc, total_f, total_c); JOptionPane.showMessageDialog(null, "You food will be ready at " + (new Time(System.currentTimeMillis() + 20 * 60 * 1000).toString()) + "\nCafe address is:\n" + "3540 Homestead Rd\n" + "Santa Clara, CA 95051"); Ramen_q0.setText(" "); Ramen_q1.setText(" "); Ramen_q2.setText(" "); Ramen_q3.setText(" "); Ramen_q4.setText(" "); Ramen_q5.setText(" "); Ramen_totalfunds.setText(" "); Ramen_totalcalories.setText(" "); } }//GEN-LAST:event_Ramen_orderActionPerformed private void Ramen_totalfundsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ramen_totalfundsActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Ramen_totalfundsActionPerformed private void Ramen_totalcaloriesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ramen_totalcaloriesActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Ramen_totalcaloriesActionPerformed private void Togo_q0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Togo_q0ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Togo_q0ActionPerformed private void Togo_q1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Togo_q1ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Togo_q1ActionPerformed private void Togo_q2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Togo_q2ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Togo_q2ActionPerformed private void Togo_q3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Togo_q3ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Togo_q3ActionPerformed private void Togo_q4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Togo_q4ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Togo_q4ActionPerformed private void Togo_q5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Togo_q5ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Togo_q5ActionPerformed private void IO_gettotal1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IO_gettotal1ActionPerformed // TODO add your handling code here: int[] quantity = new int[6]; if (Togo_q0.getText().trim().length() != 0) { quantity[0] = Integer.parseInt(Togo_q0.getText().trim()); } if (Togo_q1.getText().trim().length() != 0) { quantity[1] = Integer.parseInt(Togo_q1.getText().trim()); } if (Togo_q2.getText().trim().length() != 0) { quantity[2] = Integer.parseInt(Togo_q2.getText().trim()); } if (Togo_q3.getText().trim().length() != 0) { quantity[3] = Integer.parseInt(Togo_q3.getText().trim()); } if (Togo_q4.getText().trim().length() != 0) { quantity[4] = Integer.parseInt(Togo_q4.getText().trim()); } if (Togo_q5.getText().trim().length() != 0) { quantity[5] = Integer.parseInt(Togo_q5.getText().trim()); } float[] prices = { 6.25f, 6.75f, 6.75f, 6.25f, 5.75f, 6.75f }; int[] calories = { 520, 520, 580, 780, 540, 690 }; float total_f = 0; int total_c = 0; for (int i = 0; i < 6; i++) { total_f += quantity[i] * prices[i]; total_c += quantity[i] * calories[i]; } Togo_total_f.setText(total_f + ""); Togo_total_c.setText(total_c + ""); }//GEN-LAST:event_IO_gettotal1ActionPerformed private void IO_order1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IO_order1ActionPerformed // JOptionPane.showMessageDialog(null, "You food will be ready at"+"Cafe address is"); // TODO add your handling code here: int[] quantity = new int[6]; if (Togo_q0.getText().trim().length() != 0) { quantity[0] = Integer.parseInt(Togo_q0.getText().trim()); } if (Togo_q1.getText().trim().length() != 0) { quantity[1] = Integer.parseInt(Togo_q1.getText().trim()); } if (Togo_q2.getText().trim().length() != 0) { quantity[2] = Integer.parseInt(Togo_q2.getText().trim()); } if (Togo_q3.getText().trim().length() != 0) { quantity[3] = Integer.parseInt(Togo_q3.getText().trim()); } if (Togo_q4.getText().trim().length() != 0) { quantity[4] = Integer.parseInt(Togo_q4.getText().trim()); } if (Togo_q5.getText().trim().length() != 0) { quantity[5] = Integer.parseInt(Togo_q5.getText().trim()); } float[] prices = { 6.25f, 6.75f, 6.75f, 6.25f, 5.75f, 6.75f }; int[] calories = { 520, 520, 580, 780, 540, 690 }; float total_f = 0; int total_c = 0; for (int i = 0; i < 6; i++) { total_f += quantity[i] * prices[i]; total_c += quantity[i] * calories[i]; } if (total_c > acc.getDietaryProf().getLeftCalorie()) { JOptionPane.showMessageDialog(null, "You don't have enough Calorie today,\nTry tomorrow :)"); } else if (total_f > acc.getExpenseProf().getLeftFunds()) { JOptionPane.showMessageDialog(null, "You don't have enough money :("); } else { AccountDAO.updateLeft(acc, total_f, total_c); JOptionPane.showMessageDialog(null, "You food will be ready at " + (new Time(System.currentTimeMillis() + 12 * 60 * 1000).toString()) + "\nCafe address is:\n" + "32211 N 1st St\n" + "San Jose, CA 95131"); Togo_q0.setText(" "); Togo_q1.setText(" "); Togo_q2.setText(" "); Togo_q3.setText(" "); Togo_q4.setText(" "); Togo_q5.setText(" "); Togo_total_f.setText(" "); Togo_total_c.setText(" "); } }//GEN-LAST:event_IO_order1ActionPerformed private void Togo_total_fActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Togo_total_fActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Togo_total_fActionPerformed private void Togo_total_cActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Togo_total_cActionPerformed // TODO add your handling code here: }//GEN-LAST:event_Togo_total_cActionPerformed private void pizza_q0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pizza_q0ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_pizza_q0ActionPerformed private void pizza_q1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pizza_q1ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_pizza_q1ActionPerformed private void pizza_q2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pizza_q2ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_pizza_q2ActionPerformed private void pizza_q3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pizza_q3ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_pizza_q3ActionPerformed private void pizza_q4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pizza_q4ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_pizza_q4ActionPerformed private void pizza_q5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pizza_q5ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_pizza_q5ActionPerformed private void pizza_gettotalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pizza_gettotalActionPerformed // TODO add your handling code here: int[] quantity = new int[6]; if (pizza_q0.getText().trim().length() != 0) { quantity[0] = Integer.parseInt(pizza_q0.getText().trim()); } if (pizza_q1.getText().trim().length() != 0) { quantity[1] = Integer.parseInt(pizza_q1.getText().trim()); } if (pizza_q2.getText().trim().length() != 0) { quantity[2] = Integer.parseInt(pizza_q2.getText().trim()); } if (pizza_q3.getText().trim().length() != 0) { quantity[3] = Integer.parseInt(pizza_q3.getText().trim()); } if (pizza_q4.getText().trim().length() != 0) { quantity[4] = Integer.parseInt(pizza_q4.getText().trim()); } if (pizza_q5.getText().trim().length() != 0) { quantity[5] = Integer.parseInt(pizza_q5.getText().trim()); } float[] prices = { 22.5f, 25.5f, 29.5f, 31.5f, 28.5f, 1.75f }; int[] calories = { 1140, 1800, 2100, 2050, 1950, 140 }; float total_f = 0; int total_c = 0; for (int i = 0; i < 6; i++) { total_f += quantity[i] * prices[i]; total_c += quantity[i] * calories[i]; } pizza_total_f.setText(total_f + ""); pizza_total_c.setText(total_c + ""); }//GEN-LAST:event_pizza_gettotalActionPerformed private void pizza_orderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pizza_orderActionPerformed // JOptionPane.showMessageDialog(null, "You food will be ready at"+"Cafe address is"); int[] quantity = new int[6]; if (pizza_q0.getText().trim().length() != 0) { quantity[0] = Integer.parseInt(pizza_q0.getText().trim()); } if (pizza_q1.getText().trim().length() != 0) { quantity[1] = Integer.parseInt(pizza_q1.getText().trim()); } if (pizza_q2.getText().trim().length() != 0) { quantity[2] = Integer.parseInt(pizza_q2.getText().trim()); } if (pizza_q3.getText().trim().length() != 0) { quantity[3] = Integer.parseInt(pizza_q3.getText().trim()); } if (pizza_q4.getText().trim().length() != 0) { quantity[4] = Integer.parseInt(pizza_q4.getText().trim()); } if (pizza_q5.getText().trim().length() != 0) { quantity[5] = Integer.parseInt(pizza_q5.getText().trim()); } float[] prices = { 22.5f, 25.5f, 29.5f, 31.5f, 28.5f, 1.75f }; int[] calories = { 1140, 1800, 2100, 2050, 1950, 140 }; float total_f = 0; int total_c = 0; for (int i = 0; i < 6; i++) { total_f += quantity[i] * prices[i]; total_c += quantity[i] * calories[i]; } if (total_c > acc.getDietaryProf().getLeftCalorie()) { JOptionPane.showMessageDialog(null, "You don't have enough Calorie today,\nTry tomorrow :)"); } else if (total_f > acc.getExpenseProf().getLeftFunds()) { JOptionPane.showMessageDialog(null, "You don't have enough money :("); } else { AccountDAO.updateLeft(acc, total_f, total_c); JOptionPane.showMessageDialog(null, "You food will be ready at " + (new Time(System.currentTimeMillis() + 15 * 60 * 1000).toString()) + "\nCafe address is:\n" + "117 E San Carlos St\n" + "San Jose, CA"); pizza_q0.setText(" "); pizza_q1.setText(" "); pizza_q2.setText(" "); pizza_q3.setText(" "); pizza_q4.setText(" "); pizza_q5.setText(" "); pizza_total_f.setText(" "); pizza_total_c.setText(" "); } }//GEN-LAST:event_pizza_orderActionPerformed private void pizza_total_fActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pizza_total_fActionPerformed // TODO add your handling code here: }//GEN-LAST:event_pizza_total_fActionPerformed private void pizza_total_cActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pizza_total_cActionPerformed // TODO add your handling code here: }//GEN-LAST:event_pizza_total_cActionPerformed private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed usernameIn_N.setText(" "); passwordIn_N1.setText(null); passwordIn_Con1.setText(null); //usernameIN_N. // TODO add your handling code here: }//GEN-LAST:event_jButton4ActionPerformed private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed DefaultPieDataset pieDataset = new DefaultPieDataset(); pieDataset.setValue("One", new Integer(50)); pieDataset.setValue("Two", new Integer(20)); pieDataset.setValue("Three", new Integer(0)); pieDataset.setValue("Four", new Integer(50)); JFreeChart chart = ChartFactory.createPieChart("Pie Chart", pieDataset, true, true, true); PiePlot P = (PiePlot) chart.getPlot(); //P.setForegroundAlpha(TOP_ALIGNMENT); ChartFrame frame = new ChartFrame("Pie Chart", chart); frame.setVisible(true); frame.setSize(450, 500);// TODO add your handling code here: }//GEN-LAST:event_jButton1ActionPerformed private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed DefaultPieDataset pieDataset = new DefaultPieDataset(); pieDataset.setValue("One", new Integer(50)); pieDataset.setValue("Two", new Integer(20)); pieDataset.setValue("Three", new Integer(30)); pieDataset.setValue("Four", new Integer(50)); JFreeChart chart = ChartFactory.createPieChart("Pie Chart", pieDataset, true, true, true); PiePlot P = (PiePlot) chart.getPlot(); //P.setForegroundAlpha(TOP_ALIGNMENT); ChartFrame frame = new ChartFrame("Pie Chart", chart); frame.setVisible(true); frame.setSize(450, 500); // TODO add your handling code here: }//GEN-LAST:event_jButton2ActionPerformed private void BalanceButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BalanceButtonActionPerformed DefaultPieDataset pieDataset = new DefaultPieDataset(); pieDataset.setValue("You have Spend", new Float(acc.getExpenseProf().getTotalFunds() - acc.getExpenseProf().getLeftFunds())); pieDataset.setValue("Balance available", new Float(acc.getExpenseProf().getLeftFunds())); JFreeChart chart = ChartFactory.createPieChart("Pie Chart", pieDataset, true, true, true); PiePlot P = (PiePlot) chart.getPlot(); //P.setForegroundAlpha(TOP_ALIGNMENT); ChartFrame frame = new ChartFrame("Pie Chart", chart); frame.setVisible(true); frame.setSize(450, 500); // TODO add your handling code here: }//GEN-LAST:event_BalanceButtonActionPerformed private void MapCafe6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MapCafe6ActionPerformed // TODO add your handling code here: MainPanel.removeAll(); MainPanel.add(Map); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_MapCafe6ActionPerformed private void VM_q0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VM_q0ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_VM_q0ActionPerformed private void VM_q1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VM_q1ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_VM_q1ActionPerformed private void VM_q2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VM_q2ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_VM_q2ActionPerformed private void VM_q3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VM_q3ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_VM_q3ActionPerformed private void VM_q4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VM_q4ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_VM_q4ActionPerformed private void VM_q5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VM_q5ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_VM_q5ActionPerformed private void IO_gettotal2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IO_gettotal2ActionPerformed // TODO add your handling code here: int[] quantity = new int[6]; if (VM_q0.getText().trim().length() != 0) { quantity[0] = Integer.parseInt(VM_q0.getText().trim()); } if (VM_q1.getText().trim().length() != 0) { quantity[1] = Integer.parseInt(VM_q1.getText().trim()); } if (VM_q2.getText().trim().length() != 0) { quantity[2] = Integer.parseInt(VM_q2.getText().trim()); } if (VM_q3.getText().trim().length() != 0) { quantity[3] = Integer.parseInt(VM_q3.getText().trim()); } if (VM_q4.getText().trim().length() != 0) { quantity[4] = Integer.parseInt(VM_q4.getText().trim()); } if (VM_q5.getText().trim().length() != 0) { quantity[5] = Integer.parseInt(VM_q5.getText().trim()); } float[] prices = { 2.75f, 2.5f, 1.75f, 1.5f, 1.25f, 1.25f }; int[] calories = { 270, 300, 200, 320, 50, 140 }; float total_f = 0; int total_c = 0; for (int i = 0; i < 6; i++) { total_f += quantity[i] * prices[i]; total_c += quantity[i] * calories[i]; } VM_total_f.setText(total_f + ""); VM_total_c.setText(total_c + ""); }//GEN-LAST:event_IO_gettotal2ActionPerformed private void IO_order2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IO_order2ActionPerformed //JOptionPane.showMessageDialog(null, "You food will be ready at"+"Cafe address is"); // TODO add your handling code here: int[] quantity = new int[6]; if (VM_q0.getText().trim().length() != 0) { quantity[0] = Integer.parseInt(VM_q0.getText().trim()); } if (VM_q1.getText().trim().length() != 0) { quantity[1] = Integer.parseInt(VM_q1.getText().trim()); } if (VM_q2.getText().trim().length() != 0) { quantity[2] = Integer.parseInt(VM_q2.getText().trim()); } if (VM_q3.getText().trim().length() != 0) { quantity[3] = Integer.parseInt(VM_q3.getText().trim()); } if (VM_q4.getText().trim().length() != 0) { quantity[4] = Integer.parseInt(VM_q4.getText().trim()); } if (VM_q5.getText().trim().length() != 0) { quantity[5] = Integer.parseInt(VM_q5.getText().trim()); } float[] prices = { 2.75f, 2.5f, 1.75f, 1.5f, 1.25f, 1.25f }; int[] calories = { 270, 300, 200, 320, 50, 140 }; float total_f = 0; int total_c = 0; for (int i = 0; i < 6; i++) { total_f += quantity[i] * prices[i]; total_c += quantity[i] * calories[i]; } if (total_c > acc.getDietaryProf().getLeftCalorie()) { JOptionPane.showMessageDialog(null, "You don't have enough Calorie today,\nTry tomorrow :)"); } else if (total_f > acc.getExpenseProf().getLeftFunds()) { JOptionPane.showMessageDialog(null, "You don't have enough money :("); } else { AccountDAO.updateLeft(acc, total_f, total_c); JOptionPane.showMessageDialog(null, "Your food is ready!"); VM_q0.setText(" "); VM_q1.setText(" "); VM_q2.setText(" "); VM_q3.setText(" "); VM_q4.setText(" "); VM_q5.setText(" "); VM_total_f.setText(" "); VM_total_c.setText(" "); } }//GEN-LAST:event_IO_order2ActionPerformed private void VM_total_fActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VM_total_fActionPerformed // TODO add your handling code here: }//GEN-LAST:event_VM_total_fActionPerformed private void VM_total_cActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VM_total_cActionPerformed // TODO add your handling code here: }//GEN-LAST:event_VM_total_cActionPerformed private void Profile5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Profile5ActionPerformed // TODO add your handling code here: cur_funds_s.setText(acc.getExpenseProf().getLeftFunds() + ""); cur_calorie_s.setText(acc.getDietaryProf().getLeftCalorie() + ""); total_funds_s.setText(acc.getExpenseProf().getTotalFunds() + ""); total_calorie_s.setText(acc.getDietaryProf().getTotalCalorie() + ""); MainPanel.removeAll(); MainPanel.add(ProfilePanel); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_Profile5ActionPerformed private void CalorieButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CalorieButtonActionPerformed DefaultPieDataset pieDataset = new DefaultPieDataset(); pieDataset.setValue("You have eat", new Integer(acc.getDietaryProf().getTotalCalorie() - acc.getDietaryProf().getLeftCalorie())); pieDataset.setValue("Calories left for today", new Integer(acc.getDietaryProf().getLeftCalorie())); JFreeChart chart = ChartFactory.createPieChart("Pie Chart", pieDataset, true, true, true); PiePlot P = (PiePlot) chart.getPlot(); //P.setForegroundAlpha(TOP_ALIGNMENT); ChartFrame frame = new ChartFrame("Pie Chart", chart); frame.setVisible(true); frame.setSize(450, 500); // TODO add your handling code here: }//GEN-LAST:event_CalorieButtonActionPerformed private void orderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_orderActionPerformed // JOptionPane.showMessageDialog(null, "You food will be ready at"+"Cafe address is"); // TODO add your handling code here: int[] quantity = new int[6]; if (CC_q0.getText().trim().length() != 0) { quantity[0] = Integer.parseInt(CC_q0.getText().trim()); } if (CC_q1.getText().trim().length() != 0) { quantity[1] = Integer.parseInt(CC_q1.getText().trim()); } if (CC_q2.getText().trim().length() != 0) { quantity[2] = Integer.parseInt(CC_q2.getText().trim()); } if (CC_q3.getText().trim().length() != 0) { quantity[3] = Integer.parseInt(CC_q3.getText().trim()); } if (CC_q4.getText().trim().length() != 0) { quantity[4] = Integer.parseInt(CC_q4.getText().trim()); } if (CC_q5.getText().trim().length() != 0) { quantity[5] = Integer.parseInt(CC_q5.getText().trim()); } float[] prices = { 11.75f, 11.75f, 11.75f, 12.75f, 6.75f, 3.75f }; int[] calories = { 1360, 1740, 1540, 2130, 300, 160 }; float total_f = 0; int total_c = 0; for (int i = 0; i < 6; i++) { total_f += quantity[i] * prices[i]; total_c += quantity[i] * calories[i]; } if (total_c > acc.getDietaryProf().getLeftCalorie()) { JOptionPane.showMessageDialog(null, "You don't have enough Calorie today,\nTry tomorrow :)"); } else if (total_f > acc.getExpenseProf().getLeftFunds()) { JOptionPane.showMessageDialog(null, "You don't have enough money :("); } else { AccountDAO.updateLeft(acc, total_f, total_c); JOptionPane.showMessageDialog(null, "You food will be ready at " + (new Time(System.currentTimeMillis() + 25 * 60 * 1000).toString()) + "\nCafe address is:\n" + "3041 Stevens Creek Blvd\n" + "Santa Clara, CA 95050"); CC_q0.setText(" "); CC_q1.setText(" "); CC_q2.setText(" "); CC_q3.setText(" "); CC_q4.setText(" "); CC_q5.setText(" "); CC_total_f.setText(" "); CC_total_c.setText(" "); } }//GEN-LAST:event_orderActionPerformed private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed // TODO add your handling code here: int[] quantity = new int[6]; if (CC_q0.getText().trim().length() != 0) { quantity[0] = Integer.parseInt(CC_q0.getText().trim()); } if (CC_q1.getText().trim().length() != 0) { quantity[1] = Integer.parseInt(CC_q1.getText().trim()); } if (CC_q2.getText().trim().length() != 0) { quantity[2] = Integer.parseInt(CC_q2.getText().trim()); } if (CC_q3.getText().trim().length() != 0) { quantity[3] = Integer.parseInt(CC_q3.getText().trim()); } if (CC_q4.getText().trim().length() != 0) { quantity[4] = Integer.parseInt(CC_q4.getText().trim()); } if (CC_q5.getText().trim().length() != 0) { quantity[5] = Integer.parseInt(CC_q5.getText().trim()); } float[] prices = { 11.75f, 11.75f, 11.75f, 12.75f, 6.75f, 3.75f }; int[] calories = { 1360, 1740, 1540, 2130, 300, 160 }; float total_f = 0; int total_c = 0; for (int i = 0; i < 6; i++) { total_f += quantity[i] * prices[i]; total_c += quantity[i] * calories[i]; } CC_total_f.setText(total_f + ""); CC_total_c.setText(total_c + ""); }//GEN-LAST:event_jButton6ActionPerformed private void CC_total_cActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CC_total_cActionPerformed // TODO add your handling code here: }//GEN-LAST:event_CC_total_cActionPerformed private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed // TODO add your handling code here: float total_funds = -1; int total_calorie = -1; if (total_f_input.getText().trim().length() > 0) { total_funds = Float.parseFloat(total_f_input.getText().trim()); } if (total_c_input.getText().trim().length() > 0) { total_calorie = Integer.parseInt(total_c_input.getText().trim()); } AccountDAO.updateTotal(acc, total_funds, total_calorie); cur_funds_s.setText(acc.getExpenseProf().getLeftFunds() + ""); cur_calorie_s.setText(acc.getDietaryProf().getLeftCalorie() + ""); total_funds_s.setText(acc.getExpenseProf().getTotalFunds() + ""); total_calorie_s.setText(acc.getDietaryProf().getTotalCalorie() + ""); total_f_input.setText(" "); total_c_input.setText(" "); }//GEN-LAST:event_jButton8ActionPerformed private void MapCafe7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MapCafe7ActionPerformed // TODO add your handling code here: MainPanel.removeAll(); MainPanel.add(Map); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_MapCafe7ActionPerformed private void LogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LogoutActionPerformed // TODO add your handling code here: // acc = null; JOptionPane.showMessageDialog(null, "You've successfully logged out."); MainPanel.removeAll(); MainPanel.add(Login); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_LogoutActionPerformed private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed // TODO add your handling code here: MainPanel.removeAll(); MainPanel.add(VM); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_jButton12ActionPerformed private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton13ActionPerformed // TODO add your handling code here: MainPanel.removeAll(); MainPanel.add(VM); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_jButton13ActionPerformed private void Logout1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Logout1ActionPerformed // TODO add your handling code here: JOptionPane.showMessageDialog(null, "You've successfully logged out."); MainPanel.removeAll(); MainPanel.add(Login); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_Logout1ActionPerformed private void Logout2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Logout2ActionPerformed // TODO add your handling code here: JOptionPane.showMessageDialog(null, "You've successfully logged out."); MainPanel.removeAll(); MainPanel.add(Login); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_Logout2ActionPerformed private void Logout3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Logout3ActionPerformed // TODO add your handling code here: JOptionPane.showMessageDialog(null, "You've successfully logged out."); MainPanel.removeAll(); MainPanel.add(Login); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_Logout3ActionPerformed private void Logout4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Logout4ActionPerformed // TODO add your handling code here: JOptionPane.showMessageDialog(null, "You've successfully logged out."); MainPanel.removeAll(); MainPanel.add(Login); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_Logout4ActionPerformed private void Logout5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Logout5ActionPerformed // TODO add your handling code here: JOptionPane.showMessageDialog(null, "You've successfully logged out."); MainPanel.removeAll(); MainPanel.add(Login); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_Logout5ActionPerformed private void Logout6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Logout6ActionPerformed // TODO add your handling code here: JOptionPane.showMessageDialog(null, "You've successfully logged out."); MainPanel.removeAll(); MainPanel.add(Login); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_Logout6ActionPerformed private void Logout7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Logout7ActionPerformed // TODO add your handling code here: JOptionPane.showMessageDialog(null, "You've successfully logged out."); MainPanel.removeAll(); MainPanel.add(Login); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_Logout7ActionPerformed private void Profile6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Profile6ActionPerformed // TODO add your handling code here: cur_funds_s.setText(acc.getExpenseProf().getLeftFunds() + ""); cur_calorie_s.setText(acc.getDietaryProf().getLeftCalorie() + ""); total_funds_s.setText(acc.getExpenseProf().getTotalFunds() + ""); total_calorie_s.setText(acc.getDietaryProf().getTotalCalorie() + ""); MainPanel.removeAll(); MainPanel.add(ProfilePanel); MainPanel.repaint(); MainPanel.revalidate(); }//GEN-LAST:event_Profile6ActionPerformed private void passwordInActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_passwordInActionPerformed // TODO add your handling code here: }//GEN-LAST:event_passwordInActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(MainFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(MainFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(MainFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(MainFrame2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new MainFrame2().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton BalanceButton; private javax.swing.JTextField CC_q0; private javax.swing.JTextField CC_q1; private javax.swing.JTextField CC_q2; private javax.swing.JTextField CC_q3; private javax.swing.JTextField CC_q4; private javax.swing.JTextField CC_q5; private javax.swing.JTextField CC_total_c; private javax.swing.JTextField CC_total_f; private javax.swing.JButton Cafe1Button; private javax.swing.JButton CalorieButton; private javax.swing.JPanel Cheesecake; private javax.swing.JPanel CreateAccount; private javax.swing.JButton IO_gettotal; private javax.swing.JButton IO_gettotal1; private javax.swing.JButton IO_gettotal2; private javax.swing.JButton IO_order; private javax.swing.JButton IO_order1; private javax.swing.JButton IO_order2; private javax.swing.JTextField IO_q1; private javax.swing.JTextField IO_q2; private javax.swing.JTextField IO_q3; private javax.swing.JTextField IO_q4; private javax.swing.JTextField IO_q5; private javax.swing.JTextField IO_q6; private javax.swing.JTextField IO_totalcalories; private javax.swing.JTextField IO_totalfunds; private javax.swing.JPanel InAndOut; private javax.swing.JButton InNOutButton; private javax.swing.JPanel Login; private javax.swing.JButton LoginButton; private javax.swing.JButton Logout; private javax.swing.JButton Logout1; private javax.swing.JButton Logout2; private javax.swing.JButton Logout3; private javax.swing.JButton Logout4; private javax.swing.JButton Logout5; private javax.swing.JButton Logout6; private javax.swing.JButton Logout7; private javax.swing.JPanel MainPanel; private javax.swing.JPanel Map; private javax.swing.JButton MapCafe1; private javax.swing.JButton MapCafe2; private javax.swing.JButton MapCafe3; private javax.swing.JButton MapCafe4; private javax.swing.JButton MapCafe5; private javax.swing.JButton MapCafe6; private javax.swing.JButton MapCafe7; private javax.swing.JPanel MenuPanel; private javax.swing.JPanel MenuPanel2; private javax.swing.JPanel MenuPanel3; private javax.swing.JPanel MenuPanel4; private javax.swing.JPanel MenuPanel5; private javax.swing.JPanel MenuPanel6; private javax.swing.JPanel OrderInfoCafe; private javax.swing.JPanel OrderInfoVM; private javax.swing.JPanel Pizza; private javax.swing.JButton PizzaButton; private javax.swing.JButton Profile; private javax.swing.JButton Profile1; private javax.swing.JButton Profile2; private javax.swing.JButton Profile3; private javax.swing.JButton Profile4; private javax.swing.JButton Profile5; private javax.swing.JButton Profile6; private javax.swing.JPanel ProfilePanel; private javax.swing.JPanel Ramen; private javax.swing.JButton RamenButton; private javax.swing.JButton Ramen_gettotal; private javax.swing.JButton Ramen_order; private javax.swing.JTextField Ramen_q0; private javax.swing.JTextField Ramen_q1; private javax.swing.JTextField Ramen_q2; private javax.swing.JTextField Ramen_q3; private javax.swing.JTextField Ramen_q4; private javax.swing.JTextField Ramen_q5; private javax.swing.JTextField Ramen_totalcalories; private javax.swing.JTextField Ramen_totalfunds; private javax.swing.JPanel ToGo; private javax.swing.JButton ToGoButton; private javax.swing.JTextField Togo_q0; private javax.swing.JTextField Togo_q1; private javax.swing.JTextField Togo_q2; private javax.swing.JTextField Togo_q3; private javax.swing.JTextField Togo_q4; private javax.swing.JTextField Togo_q5; private javax.swing.JTextField Togo_total_c; private javax.swing.JTextField Togo_total_f; private javax.swing.JPanel VM; private javax.swing.JTextField VM_q0; private javax.swing.JTextField VM_q1; private javax.swing.JTextField VM_q2; private javax.swing.JTextField VM_q3; private javax.swing.JTextField VM_q4; private javax.swing.JTextField VM_q5; private javax.swing.JTextField VM_total_c; private javax.swing.JTextField VM_total_f; private javax.swing.JButton backToLogin; private javax.swing.JLabel background; private javax.swing.JButton createNewAcc; private javax.swing.JLabel cur_calorie_s; private javax.swing.JLabel cur_funds_s; private javax.swing.JButton jButton1; private javax.swing.JButton jButton10; private javax.swing.JButton jButton11; private javax.swing.JButton jButton12; private javax.swing.JButton jButton13; private javax.swing.JButton jButton2; private javax.swing.JButton jButton4; private javax.swing.JButton jButton6; private javax.swing.JButton jButton8; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel10; private javax.swing.JLabel jLabel100; private javax.swing.JLabel jLabel101; private javax.swing.JLabel jLabel102; private javax.swing.JLabel jLabel103; private javax.swing.JLabel jLabel104; private javax.swing.JLabel jLabel105; private javax.swing.JLabel jLabel106; private javax.swing.JLabel jLabel107; private javax.swing.JLabel jLabel108; private javax.swing.JLabel jLabel109; private javax.swing.JLabel jLabel11; private javax.swing.JLabel jLabel110; private javax.swing.JLabel jLabel111; private javax.swing.JLabel jLabel112; private javax.swing.JLabel jLabel113; private javax.swing.JLabel jLabel114; private javax.swing.JLabel jLabel115; private javax.swing.JLabel jLabel116; private javax.swing.JLabel jLabel117; private javax.swing.JLabel jLabel118; private javax.swing.JLabel jLabel119; private javax.swing.JLabel jLabel12; private javax.swing.JLabel jLabel120; private javax.swing.JLabel jLabel121; private javax.swing.JLabel jLabel122; private javax.swing.JLabel jLabel123; private javax.swing.JLabel jLabel124; private javax.swing.JLabel jLabel125; private javax.swing.JLabel jLabel126; private javax.swing.JLabel jLabel127; private javax.swing.JLabel jLabel128; private javax.swing.JLabel jLabel129; private javax.swing.JLabel jLabel13; private javax.swing.JLabel jLabel130; private javax.swing.JLabel jLabel131; private javax.swing.JLabel jLabel132; private javax.swing.JLabel jLabel133; private javax.swing.JLabel jLabel134; private javax.swing.JLabel jLabel135; private javax.swing.JLabel jLabel136; private javax.swing.JLabel jLabel137; private javax.swing.JLabel jLabel138; private javax.swing.JLabel jLabel139; private javax.swing.JLabel jLabel14; private javax.swing.JLabel jLabel140; private javax.swing.JLabel jLabel141; private javax.swing.JLabel jLabel142; private javax.swing.JLabel jLabel143; private javax.swing.JLabel jLabel144; private javax.swing.JLabel jLabel145; private javax.swing.JLabel jLabel146; private javax.swing.JLabel jLabel147; private javax.swing.JLabel jLabel148; private javax.swing.JLabel jLabel149; private javax.swing.JLabel jLabel15; private javax.swing.JLabel jLabel150; private javax.swing.JLabel jLabel151; private javax.swing.JLabel jLabel152; private javax.swing.JLabel jLabel153; private javax.swing.JLabel jLabel154; private javax.swing.JLabel jLabel155; private javax.swing.JLabel jLabel156; private javax.swing.JLabel jLabel157; private javax.swing.JLabel jLabel158; private javax.swing.JLabel jLabel159; private javax.swing.JLabel jLabel16; private javax.swing.JLabel jLabel160; private javax.swing.JLabel jLabel161; private javax.swing.JLabel jLabel162; private javax.swing.JLabel jLabel163; private javax.swing.JLabel jLabel164; private javax.swing.JLabel jLabel165; private javax.swing.JLabel jLabel166; private javax.swing.JLabel jLabel167; private javax.swing.JLabel jLabel168; private javax.swing.JLabel jLabel169; private javax.swing.JLabel jLabel17; private javax.swing.JLabel jLabel170; private javax.swing.JLabel jLabel171; private javax.swing.JLabel jLabel172; private javax.swing.JLabel jLabel173; private javax.swing.JLabel jLabel174; private javax.swing.JLabel jLabel175; private javax.swing.JLabel jLabel176; private javax.swing.JLabel jLabel177; private javax.swing.JLabel jLabel178; private javax.swing.JLabel jLabel179; private javax.swing.JLabel jLabel18; private javax.swing.JLabel jLabel180; private javax.swing.JLabel jLabel181; private javax.swing.JLabel jLabel182; private javax.swing.JLabel jLabel183; private javax.swing.JLabel jLabel184; private javax.swing.JLabel jLabel185; private javax.swing.JLabel jLabel186; private javax.swing.JLabel jLabel187; private javax.swing.JLabel jLabel188; private javax.swing.JLabel jLabel189; private javax.swing.JLabel jLabel19; private javax.swing.JLabel jLabel190; private javax.swing.JLabel jLabel191; private javax.swing.JLabel jLabel192; private javax.swing.JLabel jLabel193; private javax.swing.JLabel jLabel194; private javax.swing.JLabel jLabel195; private javax.swing.JLabel jLabel196; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel20; private javax.swing.JLabel jLabel21; private javax.swing.JLabel jLabel22; private javax.swing.JLabel jLabel23; private javax.swing.JLabel jLabel24; private javax.swing.JLabel jLabel25; private javax.swing.JLabel jLabel26; private javax.swing.JLabel jLabel27; private javax.swing.JLabel jLabel28; private javax.swing.JLabel jLabel29; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel30; private javax.swing.JLabel jLabel31; private javax.swing.JLabel jLabel32; private javax.swing.JLabel jLabel36; private javax.swing.JLabel jLabel37; private javax.swing.JLabel jLabel38; private javax.swing.JLabel jLabel39; private javax.swing.JLabel jLabel4; private javax.swing.JLabel jLabel40; private javax.swing.JLabel jLabel41; private javax.swing.JLabel jLabel42; private javax.swing.JLabel jLabel43; private javax.swing.JLabel jLabel44; private javax.swing.JLabel jLabel45; private javax.swing.JLabel jLabel46; private javax.swing.JLabel jLabel47; private javax.swing.JLabel jLabel48; private javax.swing.JLabel jLabel49; private javax.swing.JLabel jLabel5; private javax.swing.JLabel jLabel50; private javax.swing.JLabel jLabel51; private javax.swing.JLabel jLabel52; private javax.swing.JLabel jLabel53; private javax.swing.JLabel jLabel54; private javax.swing.JLabel jLabel55; private javax.swing.JLabel jLabel56; private javax.swing.JLabel jLabel57; private javax.swing.JLabel jLabel58; private javax.swing.JLabel jLabel59; private javax.swing.JLabel jLabel6; private javax.swing.JLabel jLabel60; private javax.swing.JLabel jLabel61; private javax.swing.JLabel jLabel62; private javax.swing.JLabel jLabel63; private javax.swing.JLabel jLabel64; private javax.swing.JLabel jLabel65; private javax.swing.JLabel jLabel66; private javax.swing.JLabel jLabel67; private javax.swing.JLabel jLabel68; private javax.swing.JLabel jLabel69; private javax.swing.JLabel jLabel7; private javax.swing.JLabel jLabel70; private javax.swing.JLabel jLabel71; private javax.swing.JLabel jLabel72; private javax.swing.JLabel jLabel73; private javax.swing.JLabel jLabel74; private javax.swing.JLabel jLabel75; private javax.swing.JLabel jLabel76; private javax.swing.JLabel jLabel77; private javax.swing.JLabel jLabel78; private javax.swing.JLabel jLabel79; private javax.swing.JLabel jLabel80; private javax.swing.JLabel jLabel81; private javax.swing.JLabel jLabel82; private javax.swing.JLabel jLabel83; private javax.swing.JLabel jLabel84; private javax.swing.JLabel jLabel85; private javax.swing.JLabel jLabel86; private javax.swing.JLabel jLabel87; private javax.swing.JLabel jLabel88; private javax.swing.JLabel jLabel89; private javax.swing.JLabel jLabel90; private javax.swing.JLabel jLabel91; private javax.swing.JLabel jLabel92; private javax.swing.JLabel jLabel93; private javax.swing.JLabel jLabel94; private javax.swing.JLabel jLabel95; private javax.swing.JLabel jLabel96; private javax.swing.JLabel jLabel97; private javax.swing.JLabel jLabel98; private javax.swing.JLabel jLabel99; private javax.swing.JSeparator jSeparator1; private javax.swing.JTextField jTextField1; private javax.swing.JButton order; private javax.swing.JPasswordField passwordIn; private javax.swing.JPasswordField passwordIn_Con1; private javax.swing.JPasswordField passwordIn_N1; private javax.swing.JButton pizza_gettotal; private javax.swing.JButton pizza_order; private javax.swing.JTextField pizza_q0; private javax.swing.JTextField pizza_q1; private javax.swing.JTextField pizza_q2; private javax.swing.JTextField pizza_q3; private javax.swing.JTextField pizza_q4; private javax.swing.JTextField pizza_q5; private javax.swing.JTextField pizza_total_c; private javax.swing.JTextField pizza_total_f; private javax.swing.JButton subbmit; private javax.swing.JTextField total_c_input; private javax.swing.JLabel total_calorie_s; private javax.swing.JTextField total_f_input; private javax.swing.JLabel total_funds_s; private javax.swing.JTextField usernameIn; private javax.swing.JTextField usernameIn_N; // End of variables declaration//GEN-END:variables }