Sie sind auf Seite 1von 108

CHAPTER 1

This chapter aims to describe the introduction, conceptual framework, statement of the problem as well as

objectives, significance of the study, scope and delimitation of the proposed system and definition of terms.

1.1 INTRODUCTION

The Ordering System are the “mechanical” part of inventory management. Wherein, the systems will

provide efficiency of recording orders and a receipt with ease. Ordering Management System is use when filling

orders for various types of securities and are able to track the progress of each order throughout the system. It is

widely used in many businesses to manage, locate and monitor the data and information of objects and materials that

are related to their product. Most of the business companies used paper processes and semi-automated system such

as Excel to take and track their orders.

The project is entitled Bakeshop Ordering Management System. This system is based on ordering and

selling the cake, bread and other pastry and generating bills for each customer. The main principle behind the need

of Bakeshop Ordering Management System is easy supervision of shop. This project is about making a database for

the Bakeshop to make the records of the sales/purchase and products. However, the current system is in-efficient

since it has to record each and everything on registers, which is difficult to manage.

It will be able to check any report at any time. It can help to reduce the time and effort, with sales

monitoring function, a lot of filtering options, and it can also produce computer generated receipts and reports.
1.2 CONCEPTUAL FRAMEWORK

Conceptual Framework is used to make conceptual distinctions and organize ideas.

INPUT PROCESS OUTPUT

 Login and  Generate


Logout Receipts

Bakeshop
 Personal  Generate
information reports Ordering
for ordering
Management
 Availability of
product System

Figure 1.1 Input – Process – Output for Bakeshop Ordering System

The system development Input – Process – Output shown in figure 1.1 is the representation on how the

researchers conducted the conceptualization to solve or to give an acceptable solution on the identified problem

during the data gathering.

INPUT

 Login and Logout – It gathers username and password of the personnel.

 Personal information for ordering – It collects the personal information of the customer.
PROCESS

 Generate Receipts – The system calculates the total amount of purchased.

 Generate reports – It computes the total amount of daily sales.

 Availability of product – The system will check and verify the availability of the product.

OUTPUT

 BAKESHOP ORDERING MANAGEMENT SYSTEM – The system will provide an easy ordering

process that reduce a manual workload of each staff.

1.3 STATEMENT OF THE PROBLEM

Because of the rapid change in season as the evolution of technology, there are people who are contented

on what they have and there are others who are not. Most of the time, people do not realize modern ways or suitable

ways to do things using technology.

There are some businesses which is still using manual process from their time of operation till their closing

time in the evening. It is a routine work. Most of the bakeshop are still using manual operation especially when it

comes to financial monitoring of their business. That’s why the owner has to count their income using paper and ball

pen before closing instead of just resting. When it gets unlucky, the record might get lost because it is only on paper

record. The ordering system is the only solution to the existing problem which the owner uses to encounter specially

bakeshop businesses, before going home and have some bonding time.

Main Problem

The main problem of the study is the existing manual system of the bakeshop. It takes a long time to compute the

total bills of the orders and also the bookkeeping of the records.
Specific Problems:

 How will the ordering system provide an accurate result in dealing with the daily transactions?

 How will the system make a reliable daily transaction report?

 How will the system help in decreasing the responsibility for calculating payments?

1.4 OBJECTIVE OF THE STUDY

The general objective of the project is to design, develop, and deliver a new system that will manage the

ordering system in Bakeshop. And to provide an easy access in getting their orders and verifying their bills.

The specific objectives:

1. To learn how the process of their manual system runs.

2. To lessen the work of the staff in assisting the customers.

3. To develop a useful system for the beneficiary that will:

a. Promote their business by giving an advanced system

b. Fasten up the time orders which being made

c. Give a systematic order and follow up orders in their costumer.

d. Record any transactions that has been done

e. Help to have accurate financial monitoring.

f. Generate reports based on the records.

4. To implement this system.


1.5 SCOPE AND DELIMITATION

Scopes:

 Security

The system has the security features wherein it is protected by username and password

 Data Back-up and Restore

The files or records can be saved on a USB flash drive, CD’s, DVD’s, or a hard drive.

 Access to the System

Only the administrator has an account on the system that can edit, modify, add, view menu and view

reports, while employees in charge in the counter, also have an account or access the system that can only

view menus to take the customer orders and payments.

Delimitation:

 Intended only for the appointed personnel

 Does not have the capability to print the daily, monthly and annual report.

1.6 SIGNIFICANCE OF THE STUDY

This study focuses on developing an Ordering Management System in a Bakeshop. The main goal of the

study is to shorten the time taken during the instance a customer orders. This project is designed to give comfort for

beneficiary and help to increase their sales by impressing their customers on what technology does beneficiary have.

The study will benefit the following:

For the Owner

This study will help the owner to find out if the system lessens his time in administering the Bakeshop.
For the Employees

This study will help the employees to find out if the used of ordering system will ease their work in

managing their clients’ orders.

For the Customer

Have the benefits of the printed receipts right after purchasing an item or product.

For the Future Researchers

The proposed system may be used as reference data in conducting new researchers. Wherein, this can serve

as a basis of their study and have a substantial idea with regard on what topic to choose. And the future researchers

can also help to improve the system in becoming more accurate, effective and efficient.

For the Proponents

It is the good start to have an idea about the future work of the proponents after graduation and enter the

corporate world. This system shall aid the proponents to boost self-confidence in getting accurate information to

their beneficiary by communicating not just only to employees of the said bakeshop but also the general manager

itself.

1.7 DEFINITION OF TERMS

The terms stated on the following are defined to understand and elaborate its meaning in the way the researcher used

in the study.

Back-up – It is the copying data file to restore its original data after a data lost event.

Database – It is used to store the records of bakeshop data to become organize and easy to find.

Manual System – It is a bookkeeping system where records are maintained by hand, without using a computer

system or any automatic system.


Order – A product that someone has requested from business.

Products – Something that is made or grown to be sold.

Proponents – It is the students who proposes the research that supports and validate that idea.

Record – It is the collection of related field with information that usually pertains to only one subject.

Reports – It shows the total amount of sales.

Sales – It is the total amount of money that a business receives from selling goods or products.

Security – The state of being protected or safe from harm.

Staff – A group of people who work for a business.

Transactions – The act of process of doing business with another person.


CHAPTER 2

REVIEW OF RELATED LITERATURE AND STUDIES

This review consists of books, articles, documents that focus on the same subject matter or other concepts

of the study.

2.1 FOREIGN LITERATURE

All information about Bakeshop Ordering Management System were gathered through research from the

internet, encyclopedias, and other books.

Bakery Management System

According to Ali Tariq, Ahsan Abbas & Shahnam Asif. The project is about making a database for the

bakery to make a record of the employees, sales purchase and product. The basic aim of the project is to provide the

search, record, delete, and updating facilities which would be much more efficient and less time consuming. The

software will allow the owners to maintain their entire record in one place which will be easy to manage. It will also

reduce the risk of errors. The database is built on MS Access.

Executive Restaurant Ordering System

According to Norshahril Bin Abu Talib. In Information Technology era, users need higher and faster

system or application. Time is a highest priority in their life. Faster applications or systems with high response time

are the criteria are mostly being look at. Daily activities such as money transaction from bank and purchasing

products are commonly activities done by users. This is included with taking order in restaurants. Current system

could not fulfill the requirements of customer especially when peak conditions. For example, current system could

not arrange the customer's order properly, wasting time, and need more staff to handle the customers. This will make

trouble to the customers and also to restaurants management. Therefore, the EROS or Executive Restaurant Order
System is the best way to prevent this problem. The EROS system includes the application of taking order system by

waiter or waitress using PDA. After that the order will be sent to the kitchen and cashier by using Wireless Local

Area Network (WLAN). On -the kitchen's section, the order will be displayed on the screen. For customer's

reference, the EROS system provides the receipt. This receipt is available in Cashier application. The EROS system

was developed by using Microsoft Visual Studio Net 2003 software.

Sarah’s Short Cake – Sales Order System

According to Sarah’s Short Cake – Sales Order System (2017). The purpose of this case study is to provide

an opportunity for information systems students to apply data modeling, process modeling, and user interface design

skills to a semi realistic scenario. Additionally, students in database courses can apply their knowledge and skills to

design the class diagram/entity relationship diagram, as well as create a physical database based on the information

requirements in this case. Furthermore, students in system 18 Journal of the International Academy for Case Studies

Volume 23, Number 2, 2017 development/capstone courses can use this case as a comprehensive project,

proceeding through the system development life cycle and develop a working system for Sarah’s shortcakes. The

interview notes and supporting documents help add a sense of reality.

www.bekeryindia.com

According to www.bakeryindia.com , “The present day consumer looks for new bakery products, better

appeal, taste and convenience from bakery foods. With a population of 1 billion plus, India has the largest middle-

income consumers, who demand varieties in food, clothing, transport and improved living standards. Opportunities,

in abundance, exist in Bakery cafes and Restaurants. Those who cater fast foods are another fastest growing section

in India. This is a new challenge to baker and he needs to update his information, technology, products and services

to meet the changing needs of the Indian consumer. To meet the new challenges, the government of India

encourages the Small and Medium enterprises (SME) with very attractive financing schemes, to modernize and

upgrade their units. This has opened up opportunities not only to SME’s but also to those in the bakery trade to

supply the new technologies.”


2.2 LOCAL LITERATURE

According to Gemma Navarro (2012) Computer is general purpose device which can be programmed to

carry out a finite set arithmetic or local operation. Computer has a big rule in our nation today because of our

technology. Wherever you go computer still exist, especially in business it makes the procedure easy and secure by

programming the manual system into a computerizing system. The rule of technology in our life today has a big

impact.

According to Louella D. Desiderio (August, 2012). Business urged to use Internet to push products. It

shows that businesses are advised to use the internet for promoting their products and services as more consumers

are going online to research before making purchases. Companies should consider using online advertisements for

the products and services thy offer as more and more people are using the internet to research goods they plan to

buy.

According to Aquino (2005). Importance of computer application is increasing day by day. The use of computer

information technology results for them to be able to develop products fast and make decisions fast, ability to have

fluid organization structures, able to cope with the demanding work force and external environment by the rapid

development of innovative approaches and lastly using information system confirms the company’s mission vision.
CHAPTER 3

RESEARCH METHODOLOGY

This chapter presents the discussion on the research methodology of the study, the subjects, sampling

technique, research instruments, procedure of data gathering and statistical treatment that will be uses for accurate

data analysis and interpretation.

3.1 RESEARCH INSTRUMENTS

The proponents plan to propose a Programming Project entitled “Bakeshop Ordering System”. This

proposed project intended to help to manage the bakeshop. The software will be managed and used by

Administrative Bakeshop, the only capable of editing and or altering the said program. The proposed software will

solve the existing problem encountered in manual and ordering system used by the Admin.

This study focused on how to develop and deploy an Ordering and Management System that will enhance

the traditional method of ordering system used in Bakeshop. The general objective of this study is to develop an

effective and efficient ordering of bakeshop, to help minimize the admins problem during the starts of transactions.

The result of the study can provide the management a view of their ordering process. In gathering data, the

proponents used different gathering instruments such as interview guide, survey form, questionnaires, library

research and web surfing for gathering data to provide the researchers relevant information for the development of

the system.

3.2 LOCALE OF THE STUDY

This study was conducted at Bakeshop. This is because the store is still handling a manual process of daily

transaction and also open to improve their current system that is using.
3.3 RESEARCH DESIGN

The proponent uses the Waterfall Model for System Development Process Model because it was the actual

methodology applied in developing the system. The waterfall model emphasizes that a logical progression of steps

be taken throughout the software development life cycle (SDLC), much like the cascading steps down an

incremental waterfall.

Figure 3.1 Waterfall Model

Requirement Gathering and analysis – The proponents gather an interview to the client in determining the flow of

current system which is needed in developing the system. Through this, the proponents analyze the given requirements

in order for the software design to be clearly defined and planned. The goal of systems analysis is to determine the

problem and fix the current system.

System Design – The requirement specifications from first phase conducted by the proponents are studied in this

phase and the system design is prepared. This system design helps in specifying hardware and system requirements

and helps in defining the overall system architecture.

Implementation − with inputs from the system design, the system is first developed in small programs called units,

which are integrated in the next phase. Each unit is developed and tested for its functionality, which is referred to as

Unit Testing.
Integration and Testing − All the units developed in the implementation phase are integrated into a system after

testing of each unit. Post integration the entire system is tested for any faults and failures.

Deployment of system − Once the functional and non-functional testing is done; the product is deployed in the

customer environment or released into the market.

Maintenance − There are some issues which come up in the client environment. To fix those issues, patches are

released. Also to enhance the product some better versions are released. Maintenance is done to deliver these

changes in the customer environment.

3.4 CONTEXT DIAGRAM

Administrator

Manage Sales
Data

Bakeshop
Ordering
System

Customer Employee/Staff

Figure 3.2 Context Diagram


3.5 SYSTEM FLOWCHART

Start

Login

Manage Yes If User No


is User is employee
master data Admin

Input customer’s
information and
Input employee View employee orders
details details

View sales record


Add edit and remove
sales record

Input customer’s
information

Save and Print


data

End

Figure 3.3 System Flowchart


LOGIN FORM

ORDER MENU FORM


ADMIN FORM

PRODUCT / ITEMS
OOP
CODE
LOGIN FORM

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JLabel;

import java.awt.Font;
import javax.swing.JPanel;
import javax.swing.ImageIcon;
import javax.swing.JTextField;
import javax.swing.JPasswordField;
import javax.swing.JButton;
import java.awt.Toolkit;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Color;
import javax.swing.border.LineBorder;
import javax.swing.JSeparator;
import java.awt.Frame;

public class LoginSystem {

private JFrame frame;


private JTextField txtUsername;
private JPasswordField pfPassword;

/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
LoginSystem window = new LoginSystem();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}

/**
* Create the application.
*/
public LoginSystem() {
initialize();
}

/**
* Initialize the contents of the frame.
*/
private void initialize() {
frame = new JFrame();
frame.setUndecorated(true);
frame.setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\Users\\use
r\\Desktop\\JE\\EKANG\\VB\\Thesis\\login logo.bmp"));
frame.setBounds(100, 100, 666, 377);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);

JPanel panel = new JPanel();


panel.setBounds(293, 0, 374, 378);
frame.getContentPane().add(panel);
panel.setLayout(null);

JLabel label = new JLabel("");


label.setIcon(new
ImageIcon(LoginSystem.class.getResource("/lblbackground.png")));
label.setBounds(0, 0, 373, 378);
panel.add(label);

JLabel lblNewLabel = new JLabel("New label");


lblNewLabel.setBounds(10, 11, 273, 80);
frame.getContentPane().add(lblNewLabel);
lblNewLabel.setIcon(new
ImageIcon(LoginSystem.class.getResource("/BakeMyDayLogo.png")));

JLabel lblAdminLogin = new JLabel(" Login");


lblAdminLogin.setIcon(new
ImageIcon(LoginSystem.class.getResource("/Picture1.2.png")));
lblAdminLogin.setBounds(94, 126, 104, 30);
lblAdminLogin.setFont(new Font("Cooper Black", Font.PLAIN, 18));
frame.getContentPane().add(lblAdminLogin);

JButton btnLogin = new JButton("Login");


btnLogin.setBackground(Color.PINK);
btnLogin.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String password = pfPassword.getText();
String username = txtUsername.getText ();
if (password.equals("123") &&
username.equals("admin")) {
AdminForm adminlogin = new AdminForm ();
adminlogin.main(null);
String LoginSystem; frame.dispose();
}
if (password.equals("123") &&
username.equals("employee")){
OrderMenu employeelogin = new OrderMenu ();
employeelogin.main(null);
String LoginSystem; frame.dispose ();
}
}
});
btnLogin.setFont(new Font("Tahoma", Font.PLAIN, 13));
btnLogin.setBounds(31, 300, 112, 24);
frame.getContentPane().add(btnLogin);

JButton btnExit = new JButton("Exit");


btnExit.setBackground(Color.PINK);
btnExit.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
System.exit(0);
}

});
btnExit.setFont(new Font("Tahoma", Font.PLAIN, 13));
btnExit.setBounds(153, 300, 113, 24);
frame.getContentPane().add(btnExit);

JLabel lblUsername = new JLabel("Username");


lblUsername.setBounds(31, 167, 89, 18);
frame.getContentPane().add(lblUsername);
lblUsername.setFont(new Font("MS Reference Sans Serif",
Font.PLAIN, 14));

JLabel lblPassword = new JLabel("Password");


lblPassword.setBounds(31, 225, 89, 24);
frame.getContentPane().add(lblPassword);
lblPassword.setFont(new Font("MS Reference Sans Serif",
Font.PLAIN, 14));

txtUsername = new JTextField();


txtUsername.setBounds(31, 187, 235, 27);
frame.getContentPane().add(txtUsername);
txtUsername.setColumns(10);

pfPassword = new JPasswordField();


pfPassword.setBounds(31, 250, 235, 27);
frame.getContentPane().add(pfPassword);

JSeparator separator = new JSeparator();


separator.setBackground(Color.BLACK);
separator.setBounds(10, 287, 271, 2);
frame.getContentPane().add(separator);

JSeparator separator_1 = new JSeparator();


separator_1.setBackground(Color.BLACK);
separator_1.setBounds(12, 158, 271, 2);
frame.getContentPane().add(separator_1);

JLabel label_1 = new JLabel("New label");


label_1.setBounds(0, 0, 294, 379);
label_1.setIcon(new
ImageIcon(LoginSystem.class.getResource("/bg.png")));
frame.getContentPane().add(label_1);

JPanel panel_1 = new JPanel();


panel_1.setBorder(new LineBorder(new Color(0, 0, 0), 1, true));
panel_1.setBounds(10, 158, 271, 130);
frame.getContentPane().add(panel_1);
panel_1.setLayout(null);

}
}
ORDER MENU FORM

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JPanel;
import java.awt.Color;
import javax.swing.JLayeredPane;
import javax.swing.JOptionPane;
import javax.swing.JCheckBox;
import javax.swing.JTextField;
import java.awt.Font;
import java.awt.CardLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.sql.Connection;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.util.Date;

import javax.swing.JButton;
import javax.swing.JList;
import java.awt.Component;
import javax.swing.JSeparator;
import javax.swing.border.LineBorder;
import javax.swing.JTextArea;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.util.Date;

public class OrderMenu {

private JFrame frame;


private JTextField txtBlackForest;
private JTextField txtChocoMoose;
private JTextField txtMatchaCake;
private JTextField txtMochaCake;
private JTextField txtOreoCake;
private JTextField txtRedVelvet;
private JTextField txtStrawberryCake;
private JTextField txtYemaCake;
private JTextField txtBreadRoll;
private JTextField txtBreadStick;
private JTextField txtBrownies;
private JTextField txtCinnamon;
private JTextField txtCupcake;
private JTextField txtEnsaymada;
private JTextField txtMacaroons;
private JTextField txtSpanishBread;
private JTextField txtC2;
private JTextField txtCocacola;
private JTextField txtIcedTea;
private JTextField txtMountainDew;
private JTextField txtRoyal;
private JTextField txtSprite;
private JTextField txtCappuccino;
private JTextField txtCaramel;
private JTextField txtLattee;
private JTextField txtEspresso;
private JTextField txtHotChoco;
private JTextField txtHotCoffee;
private JTextField txtSubTotal;
private JTextField txtVat;
private JTextField txtTotal;
private JTextField txtCash;
private JTextField txtChange;
private JTextField txtRef;
private JTextField txtName;
private JTextField txtCon;
private JPanel CakePanel;
private JPanel BreadPastryPanel;
private JPanel DrinksPanel;
private JPanel CoffeePanel;
private JList lbOrderlist;
JLabel lbltry;
JTextArea textArea;
JTextArea txtQty;
JTextArea txtItems;
private JLabel lblDate;
private JLabel lblTime;

JTextArea txtPrice;
JTextArea txtAmount;

String iTax, iSubTotal, iTotal ;


double [] itemcost = new double[46];
int[] i = new int [46];

/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
OrderMenu window = new OrderMenu();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}

/**
* Create the application.
*/
public OrderMenu() {
initialize();
clock();

}
public void clock( ) {
Thread clock = new Thread()
{
public void run()
{
try
{
for(;;)
{
Date date = new Date();
String strDateFormat = "hh:mm:ss a";
DateFormat dateFormat = new
SimpleDateFormat(strDateFormat);
String formattedDate =
dateFormat.format(date);
LocalDate Datee =
java.time.LocalDate.now();

lblTime.setText(""+formattedDate );
lblDate.setText(""+Datee );

sleep(1000);
}
}
catch (InterruptedException e)
{
e.printStackTrace();
}
}
};
clock.start();
}

/**
* Initialize the contents of the frame.
*/
private void initialize() {
frame = new JFrame();
frame.setUndecorated(true);
frame.setBounds(0, 0, 1366, 768);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);

JPanel panel_1 = new JPanel();


panel_1.setBackground(new Color(255, 204, 204));
panel_1.setBounds(10, 111, 1000, 158);
frame.getContentPane().add(panel_1);
panel_1.setLayout(null);

JButton btnNewButton_1 = new JButton("New button");


btnNewButton_1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
CakePanel.setVisible(true);
BreadPastryPanel.setVisible(false);
DrinksPanel.setVisible(false);
CoffeePanel.setVisible(false);
}
});
btnNewButton_1.setBounds(64, 47, 182, 101);
panel_1.add(btnNewButton_1);
btnNewButton_1.setIcon(new
ImageIcon(OrderMenu.class.getResource("/strawberrycake.png")));

JButton btnNewButton = new JButton("New button");


btnNewButton.setBounds(288, 47, 191, 100);
panel_1.add(btnNewButton);
btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
CakePanel.setVisible(false);
BreadPastryPanel.setVisible(true);
DrinksPanel.setVisible(false);
CoffeePanel.setVisible(false);
}
});
btnNewButton.setIcon(new
ImageIcon(OrderMenu.class.getResource("/cupcakes.png")));

JButton btnNewButton_2 = new JButton("New button");


btnNewButton_2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
CakePanel.setVisible(false);
BreadPastryPanel.setVisible(false);
DrinksPanel.setVisible(true);
CoffeePanel.setVisible(false);
}
});
btnNewButton_2.setBounds(532, 47, 190, 101);
panel_1.add(btnNewButton_2);
btnNewButton_2.setIcon(new
ImageIcon(OrderMenu.class.getResource("/icedtea.png")));

JButton btnNewButton_3 = new JButton("New button");


btnNewButton_3.setBounds(744, 47, 190, 101);
panel_1.add(btnNewButton_3);
btnNewButton_3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
CakePanel.setVisible(false);
BreadPastryPanel.setVisible(false);
DrinksPanel.setVisible(false);
CoffeePanel.setVisible(true);
}
});
btnNewButton_3.setIcon(new
ImageIcon(OrderMenu.class.getResource("/hotcoffee.png")));

JPanel panel_9 = new JPanel();


panel_9.setBounds(54, 11, 200, 24);
panel_1.add(panel_9);
panel_9.setBackground(new Color(255, 204, 204));

JLabel label_91 = new JLabel("--- CAKES---");


label_91.setFont(new Font("Showcard Gothic", Font.PLAIN, 15));
panel_9.add(label_91);

JPanel panel_10 = new JPanel();


panel_10.setBackground(new Color(255, 204, 204));
panel_10.setBounds(288, 11, 200, 24);
panel_1.add(panel_10);

JLabel lblBreadAnd = new JLabel("--- BREAD and PASTRY ---");


lblBreadAnd.setFont(new Font("Showcard Gothic", Font.PLAIN, 15));
panel_10.add(lblBreadAnd);

JPanel panel_11 = new JPanel();


panel_11.setBackground(new Color(255, 204, 204));
panel_11.setBounds(522, 11, 200, 24);
panel_1.add(panel_11);

JLabel lblDrinks = new JLabel("--- DRINKS ---");


lblDrinks.setFont(new Font("Showcard Gothic", Font.PLAIN, 15));
panel_11.add(lblDrinks);

JPanel panel_12 = new JPanel();


panel_12.setBackground(new Color(255, 204, 204));
panel_12.setBounds(751, 11, 200, 24);
panel_1.add(panel_12);

JLabel lblCoffee = new JLabel("--- COFFEE ---");


lblCoffee.setFont(new Font("Showcard Gothic", Font.PLAIN, 15));
panel_12.add(lblCoffee);

JLayeredPane layeredPane = new JLayeredPane();


layeredPane.setBounds(38, 285, 950, 460);
frame.getContentPane().add(layeredPane);
layeredPane.setLayout(new CardLayout(0, 0));

CakePanel = new JPanel();


layeredPane.add(CakePanel, "name_403011333130500");
CakePanel.setBackground(new Color(240, 248, 255));
CakePanel.setLayout(null);

JLabel lblNewLabel_2 = new JLabel("New label");


lblNewLabel_2.setIcon(new
ImageIcon(OrderMenu.class.getResource("/blackforest.jpg")));
lblNewLabel_2.setBounds(57, 49, 175, 100);
CakePanel.add(lblNewLabel_2);

JLabel label_3 = new JLabel("New label");


label_3.setIcon(new
ImageIcon(OrderMenu.class.getResource("/chocomousse.jpg")));
label_3.setBounds(281, 49, 175, 100);
CakePanel.add(label_3);

JLabel label_4 = new JLabel("New label");


label_4.setIcon(new
ImageIcon(OrderMenu.class.getResource("/matchacake.jpg")));
label_4.setBounds(499, 49, 175, 100);
CakePanel.add(label_4);

JLabel label_5 = new JLabel("New label");


label_5.setIcon(new
ImageIcon(OrderMenu.class.getResource("/mocha.jpg")));
label_5.setBounds(727, 49, 175, 100);
CakePanel.add(label_5);

JLabel label_6 = new JLabel("New label");


label_6.setIcon(new
ImageIcon(OrderMenu.class.getResource("/oreocake.jpg")));
label_6.setBounds(57, 253, 175, 100);
CakePanel.add(label_6);

JLabel label_7 = new JLabel("New label");


label_7.setIcon(new
ImageIcon(OrderMenu.class.getResource("/redvelvetcake.jpg")));
label_7.setBounds(281, 253, 175, 100);
CakePanel.add(label_7);

JLabel label_8 = new JLabel("New label");


label_8.setIcon(new
ImageIcon(OrderMenu.class.getResource("/strawberry.jpg")));
label_8.setBounds(499, 253, 175, 100);
CakePanel.add(label_8);

JLabel label_9 = new JLabel("New label");


label_9.setIcon(new
ImageIcon(OrderMenu.class.getResource("/yemacake.jpg")));
label_9.setBounds(727, 253, 175, 100);
CakePanel.add(label_9);

JCheckBox chckbxBlackForest = new JCheckBox("Black Forest");


chckbxBlackForest.setBackground(new Color(204, 153, 255));
chckbxBlackForest.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
if (chckbxBlackForest.isSelected()) {
txtBlackForest.setEnabled(true);
txtBlackForest.setText("");
txtBlackForest.requestFocus();
}
else
{
txtBlackForest.setEnabled(false);
txtBlackForest.setText("0");
}
}
});
chckbxBlackForest.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chckbxBlackForest.setBounds(57, 156, 120, 23);
CakePanel.add(chckbxBlackForest);

txtBlackForest = new JTextField();


txtBlackForest.setEnabled(false);
txtBlackForest.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
}
});
txtBlackForest.setBounds(89, 186, 120, 23);
CakePanel.add(txtBlackForest);
txtBlackForest.setColumns(10);

JCheckBox chckbxChocomousse = new JCheckBox("Choco Mousse");


chckbxChocomousse.setBackground(new Color(204, 153, 255));
chckbxChocomousse.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
if (chckbxChocomousse.isSelected()) {
txtChocoMoose.setEnabled(true);
txtChocoMoose.setText("");
txtChocoMoose.requestFocus();
}
else
{
txtChocoMoose.setEnabled(false);
txtChocoMoose.setText("0");
}
}
});
chckbxChocomousse.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chckbxChocomousse.setBounds(281, 156, 120, 23);
CakePanel.add(chckbxChocomousse);

txtChocoMoose = new JTextField();


txtChocoMoose.setEnabled(false);
txtChocoMoose.setColumns(10);
txtChocoMoose.setBounds(317, 186, 120, 23);
CakePanel.add(txtChocoMoose);

JCheckBox chkbxMatchaCake = new JCheckBox("Matcha Cake");


chkbxMatchaCake.setBackground(new Color(204, 153, 255));
chkbxMatchaCake.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
if (chkbxMatchaCake.isSelected()) {
txtMatchaCake.setEnabled(true);
txtMatchaCake.setText("");
txtMatchaCake.requestFocus();
}
else
{
txtMatchaCake.setEnabled(false);
txtMatchaCake.setText("0");
}
}
});
chkbxMatchaCake.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chkbxMatchaCake.setBounds(499, 156, 120, 23);
CakePanel.add(chkbxMatchaCake);

txtMatchaCake = new JTextField();


txtMatchaCake.setEnabled(false);
txtMatchaCake.setColumns(10);
txtMatchaCake.setBounds(544, 186, 120, 23);
CakePanel.add(txtMatchaCake);

JCheckBox chckbxMochaCake = new JCheckBox("Mocha Cake");


chckbxMochaCake.setBackground(new Color(204, 153, 255));
chckbxMochaCake.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
if (chckbxMochaCake.isSelected()) {
txtMochaCake.setEnabled(true);
txtMochaCake.setText("");
txtMochaCake.requestFocus();
}
else
{
txtMochaCake.setEnabled(false);
txtMochaCake.setText("0");
}
}
});
chckbxMochaCake.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chckbxMochaCake.setBounds(727, 156, 120, 23);
CakePanel.add(chckbxMochaCake);

txtMochaCake = new JTextField();


txtMochaCake.setEnabled(false);
txtMochaCake.setColumns(10);
txtMochaCake.setBounds(761, 186, 120, 23);
CakePanel.add(txtMochaCake);

JCheckBox chckbxOreoCake = new JCheckBox("Oreo Cake");


chckbxOreoCake.setBackground(new Color(204, 153, 255));
chckbxOreoCake.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
if (chckbxOreoCake.isSelected()) {
txtOreoCake.setEnabled(true);
txtOreoCake.setText("");
txtOreoCake.requestFocus();
}
else
{
txtOreoCake.setEnabled(false);
txtOreoCake.setText("0");
}
}
});
chckbxOreoCake.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chckbxOreoCake.setBounds(57, 364, 120, 23);
CakePanel.add(chckbxOreoCake);

txtOreoCake = new JTextField();


txtOreoCake.setEnabled(false);
txtOreoCake.setColumns(10);
txtOreoCake.setBounds(89, 394, 120, 23);
CakePanel.add(txtOreoCake);

JCheckBox chckbxRedVelvet = new JCheckBox("Red Velvet");


chckbxRedVelvet.setBackground(new Color(204, 153, 255));
chckbxRedVelvet.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
if (chckbxRedVelvet.isSelected()) {
txtRedVelvet.setEnabled(true);
txtRedVelvet.setText("");
txtRedVelvet.requestFocus();
}
else
{
txtRedVelvet.setEnabled(false);
txtRedVelvet.setText("0");
}
}
});
chckbxRedVelvet.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chckbxRedVelvet.setBounds(281, 364, 120, 23);
CakePanel.add(chckbxRedVelvet);

txtRedVelvet = new JTextField();


txtRedVelvet.setEnabled(false);
txtRedVelvet.setColumns(10);
txtRedVelvet.setBounds(327, 394, 120, 23);
CakePanel.add(txtRedVelvet);

JCheckBox chckbxStrawberry = new JCheckBox("Strawberry");


chckbxStrawberry.setBackground(new Color(204, 153, 255));
chckbxStrawberry.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
if (chckbxStrawberry.isSelected()) {
txtStrawberryCake.setEnabled(true);
txtStrawberryCake.setText("");
txtStrawberryCake.requestFocus();
}
else
{
txtStrawberryCake.setEnabled(false);
txtStrawberryCake.setText("0");
}
}
});
chckbxStrawberry.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chckbxStrawberry.setBounds(499, 364, 120, 23);
CakePanel.add(chckbxStrawberry);

txtStrawberryCake = new JTextField();


txtStrawberryCake.setEnabled(false);
txtStrawberryCake.setColumns(10);
txtStrawberryCake.setBounds(534, 394, 120, 23);
CakePanel.add(txtStrawberryCake);

JCheckBox chckbxYemaCake = new JCheckBox("Yema Cake");


chckbxYemaCake.setBackground(new Color(204, 153, 255));
chckbxYemaCake.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
if (chckbxYemaCake.isSelected()) {
txtYemaCake.setEnabled(true);
txtYemaCake.setText("");
txtYemaCake.requestFocus();
}
else
{
txtYemaCake.setEnabled(false);
txtYemaCake.setText("0");
}
}
});
chckbxYemaCake.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chckbxYemaCake.setBounds(727, 364, 120, 23);
CakePanel.add(chckbxYemaCake);

txtYemaCake = new JTextField();


txtYemaCake.setEnabled(false);
txtYemaCake.setColumns(10);
txtYemaCake.setBounds(761, 394, 120, 23);
CakePanel.add(txtYemaCake);

JLabel lblNewLabel_3 = new JLabel("599.00");


lblNewLabel_3.setFont(new Font("Tahoma", Font.PLAIN, 14));
lblNewLabel_3.setBounds(186, 156, 46, 23);
CakePanel.add(lblNewLabel_3);

JLabel label_10 = new JLabel("569.00");


label_10.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_10.setBounds(410, 154, 46, 23);
CakePanel.add(label_10);

JLabel label_11 = new JLabel("559.00");


label_11.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_11.setBounds(628, 156, 46, 23);
CakePanel.add(label_11);

JLabel label_12 = new JLabel("499.00");


label_12.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_12.setBounds(856, 156, 46, 23);
CakePanel.add(label_12);

JLabel label_13 = new JLabel("599.00");


label_13.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_13.setBounds(186, 364, 46, 23);
CakePanel.add(label_13);

JLabel label_14 = new JLabel("559.00");


label_14.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_14.setBounds(410, 364, 46, 23);
CakePanel.add(label_14);

JLabel label_15 = new JLabel("550.00");


label_15.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_15.setBounds(628, 364, 46, 23);
CakePanel.add(label_15);

JLabel label_16 = new JLabel("450.00");


label_16.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_16.setBounds(856, 364, 46, 23);
CakePanel.add(label_16);

JLabel lblQty = new JLabel("Qty");


lblQty.setFont(new Font("Tahoma", Font.PLAIN, 14));
lblQty.setBounds(57, 186, 30, 23);
CakePanel.add(lblQty);

JLabel label_17 = new JLabel("Qty");


label_17.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_17.setBounds(281, 186, 30, 23);
CakePanel.add(label_17);

JLabel label_18 = new JLabel("Qty");


label_18.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_18.setBounds(509, 186, 30, 23);
CakePanel.add(label_18);

JLabel label_19 = new JLabel("Qty");


label_19.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_19.setBounds(727, 186, 30, 23);
CakePanel.add(label_19);

JLabel label_20 = new JLabel("Qty");


label_20.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_20.setBounds(57, 394, 30, 23);
CakePanel.add(label_20);

JLabel label_21 = new JLabel("Qty");


label_21.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_21.setBounds(291, 394, 30, 23);
CakePanel.add(label_21);

JLabel label_22 = new JLabel("Qty");


label_22.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_22.setBounds(499, 394, 30, 23);
CakePanel.add(label_22);

JLabel label_23 = new JLabel("Qty");


label_23.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_23.setBounds(727, 394, 30, 23);
CakePanel.add(label_23);

JLabel lblNewLabel_5 = new JLabel("--- CAKES---");


lblNewLabel_5.setFont(new Font("Showcard Gothic", Font.PLAIN,
20));
lblNewLabel_5.setBounds(416, 6, 121, 32);
CakePanel.add(lblNewLabel_5);

JButton btnNewButton_4 = new JButton(" ADD TO ORDER");


btnNewButton_4.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnNewButton_4.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {

txtItems.setText(txtItems.getText()+"Black Forest
Cake"+"\n");

txtQty.setText(txtQty.getText()+
txtBlackForest.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"599.00"+"\n");

itemcost[2] =
Double.parseDouble(txtBlackForest.getText())* 599.00;

txtAmount.setText(txtAmount.getText()+ itemcost[2] +
"\n" );

}
});

btnNewButton_4.setBounds(89, 219, 120, 23);


CakePanel.add(btnNewButton_4);

JButton btnAddToOrder = new JButton(" ADD TO ORDER");


btnAddToOrder.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Choco
Mouse"+"\n");

txtQty.setText(txtQty.getText()+
txtChocoMoose.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"569.00"+"\n");

itemcost[3] =
Double.parseDouble(txtChocoMoose.getText())* 569.00;

txtAmount.setText(txtAmount.getText()+ itemcost[3] +
"\n" );
}
});
btnAddToOrder.setBounds(317, 219, 120, 23);
CakePanel.add(btnAddToOrder);
JButton btnAddToOrder_1 = new JButton("ADD TO ORDER");
btnAddToOrder_1.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Matcha
Cake"+"\n");

txtQty.setText(txtQty.getText()+
txtMatchaCake.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"559.00"+"\n");

itemcost[4] =
Double.parseDouble(txtMatchaCake.getText())* 559.00;

txtAmount.setText(txtAmount.getText()+ itemcost[4] +
"\n" );
}
});
btnAddToOrder_1.setBounds(544, 219, 120, 23);
CakePanel.add(btnAddToOrder_1);

JButton btnAddToOrder_2 = new JButton("ADD TO ORDER");


btnAddToOrder_2.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Mocha
Cake"+"\n");

txtQty.setText(txtQty.getText()+
txtMochaCake.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"499.00"+"\n");

itemcost[5] =
Double.parseDouble(txtMochaCake.getText())* 499.00;

txtAmount.setText(txtAmount.getText()+ itemcost[5] +
"\n" );
}
});
btnAddToOrder_2.setBounds(761, 219, 120, 23);
CakePanel.add(btnAddToOrder_2);

JButton btnAddToOrder_3 = new JButton("ADD TO ORDER");


btnAddToOrder_3.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Oreo
Cake"+"\n");

txtQty.setText(txtQty.getText()+
txtOreoCake.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"599.00"+"\n");
itemcost[6] =
Double.parseDouble(txtOreoCake.getText())* 599.00;

txtAmount.setText(txtAmount.getText()+ itemcost[6] +
"\n" );
}
});
btnAddToOrder_3.setBounds(89, 426, 120, 23);
CakePanel.add(btnAddToOrder_3);

JButton btnAddToOrder_4 = new JButton("ADD TO ORDER");


btnAddToOrder_4.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_4.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Red
Velvet"+"\n");

txtQty.setText(txtQty.getText()+
txtRedVelvet.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"559.00"+"\n");

itemcost[7] =
Double.parseDouble(txtRedVelvet.getText())* 559.00;

txtAmount.setText(txtAmount.getText()+ itemcost[7] +
"\n" );
}
});
btnAddToOrder_4.setBounds(326, 426, 120, 23);
CakePanel.add(btnAddToOrder_4);

JButton btnAddToOrder_5 = new JButton("ADD TO ORDER");


btnAddToOrder_5.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_5.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Strawberry
Cake"+"\n");

txtQty.setText(txtQty.getText()+
txtStrawberryCake.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"550.00"+"\n");

itemcost[8] =
Double.parseDouble(txtStrawberryCake.getText())* 550.00;

txtAmount.setText(txtAmount.getText()+ itemcost[8] +
"\n" );
}
});
btnAddToOrder_5.setBounds(534, 426, 120, 23);
CakePanel.add(btnAddToOrder_5);

JButton btnAddToOrder_6 = new JButton("ADD TO ORDER");


btnAddToOrder_6.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_6.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Yema
Cake"+"\n");

txtQty.setText(txtQty.getText()+
txtYemaCake.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"450.00"+"\n");

itemcost[9] =
Double.parseDouble(txtYemaCake.getText())* 450.00;

txtAmount.setText(txtAmount.getText()+ itemcost[9] +
"\n" );
}
});
btnAddToOrder_6.setBounds(761, 426, 120, 23);
CakePanel.add(btnAddToOrder_6);

lbltry = new JLabel("");


lbltry.setBounds(509, 235, 67, 24);
CakePanel.add(lbltry);

JLabel lblNewLabel_6 = new JLabel("New label");


lblNewLabel_6.setBounds(0, 0, 950, 460);
CakePanel.add(lblNewLabel_6);
lblNewLabel_6.setIcon(new
ImageIcon(OrderMenu.class.getResource("/color2.png")));

BreadPastryPanel = new JPanel();


layeredPane.add(BreadPastryPanel, "name_403011280047400");
BreadPastryPanel.setBackground(new Color(204, 153, 204));
BreadPastryPanel.setLayout(null);

JLabel label_24 = new JLabel("New label");


label_24.setIcon(new
ImageIcon(OrderMenu.class.getResource("/breadroll.jpg")));
label_24.setBounds(58, 57, 175, 100);
BreadPastryPanel.add(label_24);

JLabel label_25 = new JLabel("New label");


label_25.setIcon(new
ImageIcon(OrderMenu.class.getResource("/breadstick.jpg")));
label_25.setBounds(282, 57, 175, 100);
BreadPastryPanel.add(label_25);

JLabel label_26 = new JLabel("New label");


label_26.setIcon(new
ImageIcon(OrderMenu.class.getResource("/brownies.jpg")));
label_26.setBounds(500, 57, 175, 100);
BreadPastryPanel.add(label_26);

JLabel label_27 = new JLabel("New label");


label_27.setIcon(new
ImageIcon(OrderMenu.class.getResource("/cinnamon roll.jpg")));
label_27.setBounds(728, 57, 175, 100);
BreadPastryPanel.add(label_27);
JCheckBox chkbxBreadRoll = new JCheckBox("Bread Roll");
chkbxBreadRoll.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chkbxBreadRoll.isSelected()) {
txtBreadRoll.setEnabled(true);
txtBreadRoll.setText("");
txtBreadRoll.requestFocus();
}
else
{
txtBreadRoll.setEnabled(false);
txtBreadRoll.setText("0");
}
}
});
chkbxBreadRoll.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chkbxBreadRoll.setBackground(new Color(204, 153, 255));
chkbxBreadRoll.setBounds(58, 164, 120, 23);
BreadPastryPanel.add(chkbxBreadRoll);

JLabel label_28 = new JLabel("5.00");


label_28.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_28.setBounds(187, 164, 46, 23);
BreadPastryPanel.add(label_28);

JCheckBox chkbxBreadStick = new JCheckBox("Bread Stick");


chkbxBreadStick.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chkbxBreadStick.isSelected()) {
txtBreadStick.setEnabled(true);
txtBreadStick.setText("");
txtBreadStick.requestFocus();
}
else
{
txtBreadStick.setEnabled(false);
txtBreadStick.setText("0");
}

}
});
chkbxBreadStick.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chkbxBreadStick.setBackground(new Color(204, 153, 255));
chkbxBreadStick.setBounds(282, 164, 120, 23);
BreadPastryPanel.add(chkbxBreadStick);

JLabel label_29 = new JLabel("10.00");


label_29.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_29.setBounds(411, 162, 46, 23);
BreadPastryPanel.add(label_29);

JCheckBox chkbxBrownies = new JCheckBox("Brownies");


chkbxBrownies.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chkbxBrownies.isSelected()) {
txtBrownies.setEnabled(true);
txtBrownies.setText("");
txtBrownies.requestFocus();
}
else
{
txtBrownies.setEnabled(false);
txtBrownies.setText("0");
}
}
});
chkbxBrownies.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chkbxBrownies.setBackground(new Color(204, 153, 255));
chkbxBrownies.setBounds(500, 164, 120, 23);
BreadPastryPanel.add(chkbxBrownies);

JLabel label_30 = new JLabel("15.00");


label_30.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_30.setBounds(629, 164, 46, 23);
BreadPastryPanel.add(label_30);

JCheckBox chkbxCinnamon = new JCheckBox("Cinnamon Roll");


chkbxCinnamon.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chkbxCinnamon.isSelected()) {
txtCinnamon.setEnabled(true);
txtCinnamon.setText("");
txtCinnamon.requestFocus();
}
else
{
txtCinnamon.setEnabled(false);
txtCinnamon.setText("0");
}
}
});
chkbxCinnamon.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chkbxCinnamon.setBackground(new Color(204, 153, 255));
chkbxCinnamon.setBounds(728, 164, 120, 23);
BreadPastryPanel.add(chkbxCinnamon);

JLabel label_31 = new JLabel("20.00");


label_31.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_31.setBounds(857, 164, 46, 23);
BreadPastryPanel.add(label_31);

JLabel label_32 = new JLabel("Qty");


label_32.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_32.setBounds(58, 194, 30, 23);
BreadPastryPanel.add(label_32);

txtBreadRoll = new JTextField();


txtBreadRoll.setEnabled(false);
txtBreadRoll.setColumns(10);
txtBreadRoll.setBounds(93, 194, 120, 23);
BreadPastryPanel.add(txtBreadRoll);

JLabel label_33 = new JLabel("Qty");


label_33.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_33.setBounds(282, 194, 30, 23);
BreadPastryPanel.add(label_33);

txtBreadStick = new JTextField();


txtBreadStick.setEnabled(false);
txtBreadStick.setColumns(10);
txtBreadStick.setBounds(318, 194, 120, 23);
BreadPastryPanel.add(txtBreadStick);

JLabel label_34 = new JLabel("Qty");


label_34.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_34.setBounds(500, 194, 30, 23);
BreadPastryPanel.add(label_34);

txtBrownies = new JTextField();


txtBrownies.setEnabled(false);
txtBrownies.setColumns(10);
txtBrownies.setBounds(535, 194, 120, 23);
BreadPastryPanel.add(txtBrownies);

JLabel label_35 = new JLabel("Qty");


label_35.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_35.setBounds(728, 194, 30, 23);
BreadPastryPanel.add(label_35);

txtCinnamon = new JTextField();


txtCinnamon.setEnabled(false);
txtCinnamon.setColumns(10);
txtCinnamon.setBounds(762, 194, 120, 23);
BreadPastryPanel.add(txtCinnamon);

JLabel label_36 = new JLabel("New label");


label_36.setIcon(new
ImageIcon(OrderMenu.class.getResource("/cupcakessss.jpg")));
label_36.setBounds(69, 256, 175, 100);
BreadPastryPanel.add(label_36);

JLabel label_37 = new JLabel("New label");


label_37.setIcon(new
ImageIcon(OrderMenu.class.getResource("/ensaymada.jpg")));
label_37.setBounds(293, 256, 175, 100);
BreadPastryPanel.add(label_37);

JLabel label_38 = new JLabel("New label");


label_38.setIcon(new
ImageIcon(OrderMenu.class.getResource("/macarons.jpg")));
label_38.setBounds(511, 256, 175, 100);
BreadPastryPanel.add(label_38);

JLabel label_39 = new JLabel("New label");


label_39.setIcon(new
ImageIcon(OrderMenu.class.getResource("/spanish.jpg")));
label_39.setBounds(739, 256, 175, 100);
BreadPastryPanel.add(label_39);

JCheckBox chkbxCupcake = new JCheckBox("Cupcake");


chkbxCupcake.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chkbxCupcake.isSelected()) {
txtCupcake.setEnabled(true);
txtCupcake.setText("");
txtCupcake.requestFocus();
}
else
{
txtCupcake.setEnabled(false);
txtCupcake.setText("0");
}
}
});
chkbxCupcake.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chkbxCupcake.setBackground(new Color(204, 153, 255));
chkbxCupcake.setBounds(69, 367, 120, 23);
BreadPastryPanel.add(chkbxCupcake);

JLabel label_40 = new JLabel("30.00");


label_40.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_40.setBounds(198, 367, 46, 23);
BreadPastryPanel.add(label_40);

JCheckBox chkbxEnsaymada = new JCheckBox("Ensaymada");


chkbxEnsaymada.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chkbxEnsaymada.isSelected()) {
txtEnsaymada.setEnabled(true);
txtEnsaymada.setText("");
txtEnsaymada.requestFocus();
}
else
{
txtEnsaymada.setEnabled(false);
txtEnsaymada.setText("0");
}
}
});
chkbxEnsaymada.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chkbxEnsaymada.setBackground(new Color(204, 153, 255));
chkbxEnsaymada.setBounds(293, 367, 120, 23);
BreadPastryPanel.add(chkbxEnsaymada);

JLabel label_41 = new JLabel("25.00");


label_41.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_41.setBounds(422, 367, 46, 23);
BreadPastryPanel.add(label_41);

JCheckBox chkbxMacaroons = new JCheckBox("Macaroons");


chkbxMacaroons.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chkbxMacaroons.isSelected()) {
txtMacaroons.setEnabled(true);
txtMacaroons.setText("");
txtMacaroons.requestFocus();
}
else
{
txtMacaroons.setEnabled(false);
txtMacaroons.setText("0");
}
}
});
chkbxMacaroons.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chkbxMacaroons.setBackground(new Color(204, 153, 255));
chkbxMacaroons.setBounds(511, 367, 120, 23);
BreadPastryPanel.add(chkbxMacaroons);

JLabel label_42 = new JLabel("15.00");


label_42.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_42.setBounds(640, 367, 46, 23);
BreadPastryPanel.add(label_42);

JCheckBox chkbxSpanishBread = new JCheckBox("Spanish Bread");


chkbxSpanishBread.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chkbxSpanishBread.isSelected()) {
txtSpanishBread.setEnabled(true);
txtSpanishBread.setText("");
txtSpanishBread.requestFocus();
}
else
{
txtSpanishBread.setEnabled(false);
txtSpanishBread.setText("0");
}
}
});
chkbxSpanishBread.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chkbxSpanishBread.setBackground(new Color(204, 153, 255));
chkbxSpanishBread.setBounds(739, 367, 120, 23);
BreadPastryPanel.add(chkbxSpanishBread);

JLabel label_43 = new JLabel("5.00");


label_43.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_43.setBounds(868, 367, 46, 23);
BreadPastryPanel.add(label_43);

JLabel label_44 = new JLabel("Qty");


label_44.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_44.setBounds(69, 397, 30, 23);
BreadPastryPanel.add(label_44);

txtCupcake = new JTextField();


txtCupcake.setEnabled(false);
txtCupcake.setColumns(10);
txtCupcake.setBounds(104, 397, 120, 23);
BreadPastryPanel.add(txtCupcake);

JLabel label_45 = new JLabel("Qty");


label_45.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_45.setBounds(293, 397, 30, 23);
BreadPastryPanel.add(label_45);

txtEnsaymada = new JTextField();


txtEnsaymada.setEnabled(false);
txtEnsaymada.setColumns(10);
txtEnsaymada.setBounds(329, 397, 120, 23);
BreadPastryPanel.add(txtEnsaymada);

JLabel label_46 = new JLabel("Qty");


label_46.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_46.setBounds(511, 397, 30, 23);
BreadPastryPanel.add(label_46);

txtMacaroons = new JTextField();


txtMacaroons.setEnabled(false);
txtMacaroons.setColumns(10);
txtMacaroons.setBounds(546, 397, 120, 23);
BreadPastryPanel.add(txtMacaroons);

JLabel label_47 = new JLabel("Qty");


label_47.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_47.setBounds(739, 397, 30, 23);
BreadPastryPanel.add(label_47);

txtSpanishBread = new JTextField();


txtSpanishBread.setEnabled(false);
txtSpanishBread.setColumns(10);
txtSpanishBread.setBounds(773, 397, 120, 23);
BreadPastryPanel.add(txtSpanishBread);

JLabel lblBread = new JLabel("--- BREAD & PASTRY---");


lblBread.setFont(new Font("Showcard Gothic", Font.PLAIN, 20));
lblBread.setBounds(352, 14, 226, 32);
BreadPastryPanel.add(lblBread);

JButton btnAddToOrder_7 = new JButton("ADD TO ORDER");


btnAddToOrder_7.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_7.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Bread
Roll"+"\n");

txtQty.setText(txtQty.getText()+
txtBreadRoll.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"5.00"+"\n");

itemcost[10] =
Double.parseDouble(txtBreadRoll.getText())* 5.00;
txtAmount.setText(txtAmount.getText()+ itemcost[10] +
"\n" );
}
});
btnAddToOrder_7.setBounds(93, 222, 120, 23);
BreadPastryPanel.add(btnAddToOrder_7);

JButton btnAddToOrder_8 = new JButton("ADD TO ORDER");


btnAddToOrder_8.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_8.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Bread
Stick"+"\n");

txtQty.setText(txtQty.getText()+
txtBreadStick.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"10.00"+"\n");

itemcost[11] =
Double.parseDouble(txtBreadStick.getText())* 10.00;

txtAmount.setText(txtAmount.getText()+ itemcost[11] +
"\n" );
}
});
btnAddToOrder_8.setBounds(317, 224, 120, 23);
BreadPastryPanel.add(btnAddToOrder_8);

JButton btnAddToOrder_9 = new JButton("ADD TO ORDER");


btnAddToOrder_9.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_9.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Brownies"+"\n");

txtQty.setText(txtQty.getText()+
txtBrownies.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"15.00"+"\n");

itemcost[12] =
Double.parseDouble(txtBrownies.getText())* 15.00;

txtAmount.setText(txtAmount.getText()+ itemcost[12] +
"\n" );
}
});
btnAddToOrder_9.setBounds(535, 224, 120, 23);
BreadPastryPanel.add(btnAddToOrder_9);

JButton btnAddToOrder_10 = new JButton("ADD TO ORDER");


btnAddToOrder_10.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_10.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Cinnamon
Roll"+"\n");
txtQty.setText(txtQty.getText()+
txtCinnamon.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"20.00"+"\n");

itemcost[13] =
Double.parseDouble(txtCinnamon.getText())* 20.00;

txtAmount.setText(txtAmount.getText()+ itemcost[13] +
"\n" );
}
});
btnAddToOrder_10.setBounds(763, 222, 120, 23);
BreadPastryPanel.add(btnAddToOrder_10);

JButton btnAddToOrder_11 = new JButton("ADD TO ORDER");


btnAddToOrder_11.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_11.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Cupcake"+"\n");

txtQty.setText(txtQty.getText()+
txtCupcake.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"30.00"+"\n");

itemcost[14] =
Double.parseDouble(txtCupcake.getText())* 30.00;

txtAmount.setText(txtAmount.getText()+ itemcost[14] +
"\n" );
}
});
btnAddToOrder_11.setBounds(105, 422, 120, 23);
BreadPastryPanel.add(btnAddToOrder_11);

JButton btnAddToOrder_12 = new JButton("ADD TO ORDER");


btnAddToOrder_12.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_12.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {

txtItems.setText(txtItems.getText()+"Ensaymada"+"\n");

txtQty.setText(txtQty.getText()+
txtEnsaymada.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"25.00"+"\n");

itemcost[15] =
Double.parseDouble(txtEnsaymada.getText())* 25.00;

txtAmount.setText(txtAmount.getText()+ itemcost[15] +
"\n" );
}
});
btnAddToOrder_12.setBounds(330, 422, 120, 23);
BreadPastryPanel.add(btnAddToOrder_12);
JButton btnAddToOrder_13 = new JButton("ADD TO ORDER");
btnAddToOrder_13.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_13.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {

txtItems.setText(txtItems.getText()+"Macaroons"+"\n");

txtQty.setText(txtQty.getText()+
txtMacaroons.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"15.00"+"\n");

itemcost[16] =
Double.parseDouble(txtMacaroons.getText())* 15.00;

txtAmount.setText(txtAmount.getText()+ itemcost[16] +
"\n" );
}
});
btnAddToOrder_13.setBounds(546, 424, 120, 23);
BreadPastryPanel.add(btnAddToOrder_13);

JButton btnAddToOrder_14 = new JButton("ADD TO ORDER");


btnAddToOrder_14.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_14.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Spanish
Bread"+"\n");

txtQty.setText(txtQty.getText()+
txtSpanishBread.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"5.00"+"\n");

itemcost[17] =
Double.parseDouble(txtSpanishBread.getText())* 5.00;

txtAmount.setText(txtAmount.getText()+ itemcost[17] +
"\n" );
}
});
btnAddToOrder_14.setBounds(773, 426, 120, 23);
BreadPastryPanel.add(btnAddToOrder_14);

JLabel lblNewLabel_7 = new JLabel("New label");


lblNewLabel_7.setIcon(new
ImageIcon(OrderMenu.class.getResource("/color2.png")));
lblNewLabel_7.setBounds(10, 0, 950, 460);
BreadPastryPanel.add(lblNewLabel_7);

DrinksPanel = new JPanel();


DrinksPanel.setBackground(new Color(204, 153, 204));
layeredPane.add(DrinksPanel, "name_403011297252500");
DrinksPanel.setLayout(null);

JLabel label_48 = new JLabel("New label");


label_48.setIcon(new ImageIcon(OrderMenu.class.getResource("/c2
bottle.jpg")));
label_48.setBounds(128, 54, 175, 100);
DrinksPanel.add(label_48);

JLabel label_49 = new JLabel("New label");


label_49.setIcon(new ImageIcon(OrderMenu.class.getResource("/coca
cola.jpg")));
label_49.setBounds(393, 54, 175, 100);
DrinksPanel.add(label_49);

JLabel label_50 = new JLabel("New label");


label_50.setIcon(new
ImageIcon(OrderMenu.class.getResource("/icedtea.png")));
label_50.setBounds(659, 54, 175, 100);
DrinksPanel.add(label_50);

JLabel label_51 = new JLabel("New label");


label_51.setIcon(new
ImageIcon(OrderMenu.class.getResource("/mtndew.jpg")));
label_51.setBounds(128, 261, 175, 100);
DrinksPanel.add(label_51);

JCheckBox chkbxC2 = new JCheckBox("C2");


chkbxC2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chkbxC2 .isSelected()) {
txtC2 .setEnabled(true);
txtC2 .setText("");
txtC2 .requestFocus();
}
else
{
txtC2 .setEnabled(false);
txtC2 .setText("0");
}
}
});
chkbxC2.setBackground(new Color(204, 153, 255));
chkbxC2.setFont(new Font("Times New Roman", Font.PLAIN, 14));
chkbxC2.setBounds(128, 161, 120, 23);
DrinksPanel.add(chkbxC2);

JLabel label_52 = new JLabel("25.00");


label_52.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_52.setBounds(257, 161, 46, 23);
DrinksPanel.add(label_52);

JCheckBox chkbxCocacola = new JCheckBox("Coca Cola");


chkbxCocacola.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chkbxCocacola .isSelected()) {
txtCocacola .setEnabled(true);
txtCocacola .setText("");
txtCocacola .requestFocus();
}
else
{
txtCocacola .setEnabled(false);
txtCocacola .setText("0");
}
}
});
chkbxCocacola.setBackground(new Color(204, 153, 255));
chkbxCocacola.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chkbxCocacola.setBounds(393, 161, 120, 23);
DrinksPanel.add(chkbxCocacola);

JLabel label_53 = new JLabel("20.00");


label_53.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_53.setBounds(522, 159, 46, 23);
DrinksPanel.add(label_53);

JCheckBox chkbxIcedTea = new JCheckBox("Iced Tea");


chkbxIcedTea.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chkbxIcedTea .isSelected()) {
txtIcedTea .setEnabled(true);
txtIcedTea .setText("");
txtIcedTea .requestFocus();
}
else
{
txtIcedTea .setEnabled(false);
txtIcedTea .setText("0");
}
}
});
chkbxIcedTea.setBackground(new Color(204, 153, 255));
chkbxIcedTea.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chkbxIcedTea.setBounds(659, 161, 120, 23);
DrinksPanel.add(chkbxIcedTea);

JLabel label_54 = new JLabel("30.00");


label_54.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_54.setBounds(788, 161, 46, 23);
DrinksPanel.add(label_54);

JCheckBox chkbxMountainDew = new JCheckBox("Mountain Dew");


chkbxMountainDew.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chkbxMountainDew .isSelected()) {
txtMountainDew .setEnabled(true);
txtMountainDew .setText("");
txtMountainDew .requestFocus();
}
else
{
txtMountainDew .setEnabled(false);
txtMountainDew .setText("0");
}
}
});
chkbxMountainDew.setBackground(new Color(204, 153, 255));
chkbxMountainDew.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chkbxMountainDew.setBounds(128, 365, 120, 23);
DrinksPanel.add(chkbxMountainDew);

JLabel label_55 = new JLabel("25.00");


label_55.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_55.setBounds(257, 365, 46, 23);
DrinksPanel.add(label_55);

JLabel label_56 = new JLabel("Qty");


label_56.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_56.setBounds(128, 191, 30, 23);
DrinksPanel.add(label_56);

txtC2 = new JTextField();


txtC2.setEnabled(false);
txtC2.setColumns(10);
txtC2.setBounds(163, 191, 120, 23);
DrinksPanel.add(txtC2);

JLabel label_57 = new JLabel("Qty");


label_57.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_57.setBounds(392, 191, 30, 23);
DrinksPanel.add(label_57);

txtCocacola = new JTextField();


txtCocacola.setEnabled(false);
txtCocacola.setColumns(10);
txtCocacola.setBounds(428, 191, 120, 23);
DrinksPanel.add(txtCocacola);

JLabel label_58 = new JLabel("Qty");


label_58.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_58.setBounds(669, 191, 30, 23);
DrinksPanel.add(label_58);

txtIcedTea = new JTextField();


txtIcedTea.setEnabled(false);
txtIcedTea.setColumns(10);
txtIcedTea.setBounds(704, 191, 120, 23);
DrinksPanel.add(txtIcedTea);

JLabel label_59 = new JLabel("Qty");


label_59.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_59.setBounds(128, 395, 30, 23);
DrinksPanel.add(label_59);

txtMountainDew = new JTextField();


txtMountainDew.setEnabled(false);
txtMountainDew.setColumns(10);
txtMountainDew.setBounds(162, 395, 120, 23);
DrinksPanel.add(txtMountainDew);

JLabel label_60 = new JLabel("New label");


label_60.setIcon(new
ImageIcon(OrderMenu.class.getResource("/royal.jpg")));
label_60.setBounds(393, 257, 175, 100);
DrinksPanel.add(label_60);

JLabel label_61 = new JLabel("New label");


label_61.setIcon(new
ImageIcon(OrderMenu.class.getResource("/sprite.jpg")));
label_61.setBounds(659, 257, 175, 100);
DrinksPanel.add(label_61);

JCheckBox chkbxRoyal = new JCheckBox("Royal");


chkbxRoyal.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chkbxRoyal .isSelected()) {
txtRoyal .setEnabled(true);
txtRoyal .setText("");
txtRoyal .requestFocus();
}
else
{
txtRoyal .setEnabled(false);
txtRoyal .setText("0");
}
}
});
chkbxRoyal.setBackground(new Color(204, 153, 255));
chkbxRoyal.setFont(new Font("Times New Roman", Font.PLAIN, 14));
chkbxRoyal.setBounds(393, 365, 120, 23);
DrinksPanel.add(chkbxRoyal);

JLabel label_64 = new JLabel("20.00");


label_64.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_64.setBounds(522, 365, 46, 23);
DrinksPanel.add(label_64);

JCheckBox chkbxxSprite = new JCheckBox("Sprite");


chkbxxSprite.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chkbxxSprite .isSelected()) {
txtSprite .setEnabled(true);
txtSprite .setText("");
txtSprite .requestFocus();
}
else
{
txtSprite .setEnabled(false);
txtSprite .setText("0");
}
}
});
chkbxxSprite.setBackground(new Color(204, 153, 255));
chkbxxSprite.setFont(new Font("Times New Roman", Font.PLAIN,
14));
chkbxxSprite.setBounds(659, 365, 120, 23);
DrinksPanel.add(chkbxxSprite);
JLabel label_65 = new JLabel("20.00");
label_65.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_65.setBounds(788, 365, 46, 23);
DrinksPanel.add(label_65);

JLabel label_68 = new JLabel("Qty");


label_68.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_68.setBounds(392, 395, 30, 23);
DrinksPanel.add(label_68);

txtRoyal = new JTextField();


txtRoyal.setEnabled(false);
txtRoyal.setColumns(10);
txtRoyal.setBounds(427, 395, 120, 23);
DrinksPanel.add(txtRoyal);

JLabel label_69 = new JLabel("Qty");


label_69.setFont(new Font("Tahoma", Font.PLAIN, 14));
label_69.setBounds(657, 395, 30, 23);
DrinksPanel.add(label_69);

txtSprite = new JTextField();


txtSprite.setEnabled(false);
txtSprite.setColumns(10);
txtSprite.setBounds(693, 395, 120, 23);
DrinksPanel.add(txtSprite);

JLabel lblDrinks_1 = new JLabel("--- DRINKS---");


lblDrinks_1.setFont(new Font("Showcard Gothic", Font.PLAIN, 20));
lblDrinks_1.setBounds(402, 11, 154, 32);
DrinksPanel.add(lblDrinks_1);

JButton btnAddToOrder_15 = new JButton("ADD TO ORDER");


btnAddToOrder_15.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_15.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"C2"+"\n");

txtQty.setText(txtQty.getText()+
txtC2.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"25.00"+"\n");

itemcost[18] = Double.parseDouble(txtC2.getText())*
25.00;

txtAmount.setText(txtAmount.getText()+ itemcost[18] +
"\n" );
}
});
btnAddToOrder_15.setBounds(163, 218, 120, 23);
DrinksPanel.add(btnAddToOrder_15);

JButton btnAddToOrder_16 = new JButton("ADD TO ORDER");


btnAddToOrder_16.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_16.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Coca
Cola"+"\n");

txtQty.setText(txtQty.getText()+
txtCocacola.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"20.00"+"\n");

itemcost[19] =
Double.parseDouble(txtCocacola.getText())* 20.00;

txtAmount.setText(txtAmount.getText()+ itemcost[19] +
"\n" );
}
});
btnAddToOrder_16.setBounds(428, 218, 120, 23);
DrinksPanel.add(btnAddToOrder_16);

JButton btnAddToOrder_17 = new JButton("ADD TO ORDER");


btnAddToOrder_17.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_17.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Iced Tea"+"\n");

txtQty.setText(txtQty.getText()+
txtIcedTea.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"30.00"+"\n");

itemcost[20] =
Double.parseDouble(txtIcedTea.getText())* 30.00;

txtAmount.setText(txtAmount.getText()+ itemcost[20] +
"\n" );
}
});
btnAddToOrder_17.setBounds(704, 218, 120, 23);
DrinksPanel.add(btnAddToOrder_17);

JButton btnAddToOrder_18 = new JButton("ADD TO ORDER");


btnAddToOrder_18.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_18.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Mountain
Dew"+"\n");

txtQty.setText(txtQty.getText()+
txtMountainDew.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"25.00"+"\n");

itemcost[21] =
Double.parseDouble(txtMountainDew.getText())* 25.00;

txtAmount.setText(txtAmount.getText()+ itemcost[21] +
"\n" );
}
});
btnAddToOrder_18.setBounds(163, 422, 120, 23);
DrinksPanel.add(btnAddToOrder_18);

JButton btnAddToOrder_19 = new JButton("ADD TO ORDER");


btnAddToOrder_19.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_19.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Royal"+"\n");

txtQty.setText(txtQty.getText()+
txtRoyal.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"20.00"+"\n");

itemcost[22] =
Double.parseDouble(txtRoyal.getText())* 20.00;

txtAmount.setText(txtAmount.getText()+ itemcost[22] +
"\n" );
}
});
btnAddToOrder_19.setBounds(428, 422, 120, 23);
DrinksPanel.add(btnAddToOrder_19);

JButton btnAddToOrder_20 = new JButton("ADD TO ORDER");


btnAddToOrder_20.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_20.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Sprite"+"\n");

txtQty.setText(txtQty.getText()+
txtSprite.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"20.00"+"\n");

itemcost[23] =
Double.parseDouble(txtSprite.getText())* 20.00;

txtAmount.setText(txtAmount.getText()+ itemcost[23] +
"\n" );
}
});
btnAddToOrder_20.setBounds(693, 422, 120, 23);
DrinksPanel.add(btnAddToOrder_20);

JLabel lblNewLabel_8 = new JLabel("New label");


lblNewLabel_8.setIcon(new
ImageIcon(OrderMenu.class.getResource("/color2.png")));
lblNewLabel_8.setBounds(0, 0, 950, 460);
DrinksPanel.add(lblNewLabel_8);

CoffeePanel = new JPanel();


layeredPane.add(CoffeePanel, "name_403011313173200");
CoffeePanel.setBackground(new Color(204, 153, 204));
CoffeePanel.setLayout(null);
JLabel label_62 = new JLabel("New label");
label_62.setBounds(125, 54, 175, 100);
label_62.setIcon(new
ImageIcon(OrderMenu.class.getResource("/cappuccino.jpg")));
CoffeePanel.add(label_62);

JCheckBox chckbxCappuccino = new JCheckBox("Cappuccino");


chckbxCappuccino.setBounds(125, 161, 120, 23);
chckbxCappuccino.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chckbxCappuccino .isSelected()) {
txtCappuccino .setEnabled(true);
txtCappuccino .setText("");
txtCappuccino .requestFocus();
}
else
{
txtCappuccino .setEnabled(false);
txtCappuccino .setText("0");
}
}
});
chckbxCappuccino.setBackground(new Color(204, 153, 255));
chckbxCappuccino.setFont(new Font("Times New Roman", Font.PLAIN,
14));
CoffeePanel.add(chckbxCappuccino);

JLabel label_63 = new JLabel("130.00");


label_63.setBounds(254, 161, 46, 23);
label_63.setFont(new Font("Tahoma", Font.PLAIN, 14));
CoffeePanel.add(label_63);

JLabel label_66 = new JLabel("Qty");


label_66.setBounds(125, 191, 30, 23);
label_66.setFont(new Font("Tahoma", Font.PLAIN, 14));
CoffeePanel.add(label_66);

txtCappuccino = new JTextField();


txtCappuccino.setBounds(160, 191, 120, 23);
txtCappuccino.setEnabled(false);
txtCappuccino.setColumns(10);
CoffeePanel.add(txtCappuccino);

JLabel label_67 = new JLabel("New label");


label_67.setBounds(390, 54, 175, 100);
label_67.setIcon(new
ImageIcon(OrderMenu.class.getResource("/caramel machiatto.jpg")));
CoffeePanel.add(label_67);

JCheckBox chckbxCaramelMachiatto = new JCheckBox("Caramel


Machiatto");
chckbxCaramelMachiatto.setBounds(390, 161, 125, 23);
chckbxCaramelMachiatto.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chckbxCaramelMachiatto .isSelected()) {
txtCaramel.setEnabled(true);
txtCaramel.setText("");
txtCaramel.requestFocus();
}
else
{
txtCaramel.setEnabled(false);
txtCaramel.setText("0");
}
}
});
chckbxCaramelMachiatto.setBackground(new Color(204, 153, 255));
chckbxCaramelMachiatto.setFont(new Font("Times New Roman",
Font.PLAIN, 13));
CoffeePanel.add(chckbxCaramelMachiatto);

JLabel label_70 = new JLabel("145.00");


label_70.setBounds(519, 159, 46, 23);
label_70.setFont(new Font("Tahoma", Font.PLAIN, 14));
CoffeePanel.add(label_70);

JLabel label_71 = new JLabel("Qty");


label_71.setBounds(389, 191, 30, 23);
label_71.setFont(new Font("Tahoma", Font.PLAIN, 14));
CoffeePanel.add(label_71);

txtCaramel = new JTextField();


txtCaramel.setBounds(425, 191, 120, 23);
txtCaramel.setEnabled(false);
txtCaramel.setColumns(10);
CoffeePanel.add(txtCaramel);

JLabel label_72 = new JLabel("New label");


label_72.setBounds(656, 54, 175, 100);
label_72.setIcon(new
ImageIcon(OrderMenu.class.getResource("/coffee latte.jpg")));
CoffeePanel.add(label_72);

JCheckBox chckbxCoffeeLatte = new JCheckBox("Coffee Latte");


chckbxCoffeeLatte.setBounds(656, 161, 120, 23);
chckbxCoffeeLatte.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chckbxCoffeeLatte.isSelected()) {
txtLattee .setEnabled(true);
txtLattee .setText("");
txtLattee .requestFocus();
}
else
{
txtLattee .setEnabled(false);
txtLattee.setText("0");
}
}
});
chckbxCoffeeLatte.setBackground(new Color(204, 153, 255));
chckbxCoffeeLatte.setFont(new Font("Times New Roman", Font.PLAIN,
14));
CoffeePanel.add(chckbxCoffeeLatte);
JLabel label_73 = new JLabel("125.00");
label_73.setBounds(785, 161, 46, 23);
label_73.setFont(new Font("Tahoma", Font.PLAIN, 14));
CoffeePanel.add(label_73);

JLabel label_74 = new JLabel("Qty");


label_74.setBounds(656, 191, 30, 23);
label_74.setFont(new Font("Tahoma", Font.PLAIN, 14));
CoffeePanel.add(label_74);

txtLattee = new JTextField();


txtLattee.setBounds(691, 191, 120, 23);
txtLattee.setEnabled(false);
txtLattee.setColumns(10);
CoffeePanel.add(txtLattee);

JLabel label_75 = new JLabel("New label");


label_75.setBounds(125, 254, 175, 100);
label_75.setIcon(new
ImageIcon(OrderMenu.class.getResource("/espresso.jpg")));
CoffeePanel.add(label_75);

JCheckBox chckbxEspresso = new JCheckBox("Espresso");


chckbxEspresso.setBounds(125, 361, 120, 23);
chckbxEspresso.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chckbxEspresso .isSelected()) {
txtEspresso .setEnabled(true);
txtEspresso .setText("");
txtEspresso.requestFocus();
}
else
{
txtEspresso.setEnabled(false);
txtEspresso.setText("0");
}
}
});
chckbxEspresso.setBackground(new Color(204, 153, 255));
chckbxEspresso.setFont(new Font("Times New Roman", Font.PLAIN,
14));
CoffeePanel.add(chckbxEspresso);

JLabel label_76 = new JLabel("110.00");


label_76.setBounds(254, 361, 46, 23);
label_76.setFont(new Font("Tahoma", Font.PLAIN, 14));
CoffeePanel.add(label_76);

JLabel label_77 = new JLabel("Qty");


label_77.setBounds(125, 391, 30, 23);
label_77.setFont(new Font("Tahoma", Font.PLAIN, 14));
CoffeePanel.add(label_77);

txtEspresso = new JTextField();


txtEspresso.setBounds(159, 391, 120, 23);
txtEspresso.setEnabled(false);
txtEspresso.setColumns(10);
CoffeePanel.add(txtEspresso);

JLabel label_78 = new JLabel("New label");


label_78.setBounds(390, 250, 175, 100);
label_78.setIcon(new ImageIcon(OrderMenu.class.getResource("/hot
choco.jpg")));
CoffeePanel.add(label_78);

JCheckBox chckbxHotChocolate = new JCheckBox("Hot Chocolate");


chckbxHotChocolate.setBounds(390, 361, 120, 23);
chckbxHotChocolate.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chckbxHotChocolate .isSelected()) {
txtHotChoco .setEnabled(true);
txtHotChoco .setText("");
txtHotChoco.requestFocus();
}
else
{
txtHotChoco.setEnabled(false);
txtHotChoco.setText("0");
}
}
});
chckbxHotChocolate.setBackground(new Color(204, 153, 255));
chckbxHotChocolate.setFont(new Font("Times New Roman",
Font.PLAIN, 14));
CoffeePanel.add(chckbxHotChocolate);

JLabel label_79 = new JLabel("125.00");


label_79.setBounds(519, 361, 46, 23);
label_79.setFont(new Font("Tahoma", Font.PLAIN, 14));
CoffeePanel.add(label_79);

JLabel label_80 = new JLabel("Qty");


label_80.setBounds(389, 391, 30, 23);
label_80.setFont(new Font("Tahoma", Font.PLAIN, 14));
CoffeePanel.add(label_80);

txtHotChoco = new JTextField();


txtHotChoco.setBounds(424, 391, 120, 23);
txtHotChoco.setEnabled(false);
txtHotChoco.setColumns(10);
CoffeePanel.add(txtHotChoco);

JLabel label_81 = new JLabel("New label");


label_81.setBounds(656, 250, 175, 100);
label_81.setIcon(new ImageIcon(OrderMenu.class.getResource("/hot
coffee.jpg")));
CoffeePanel.add(label_81);

JCheckBox chckbxHotCoffee = new JCheckBox("Hot Coffee");


chckbxHotCoffee.setBounds(656, 361, 120, 23);
chckbxHotCoffee.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (chckbxHotCoffee .isSelected()) {
txtHotCoffee .setEnabled(true);
txtHotCoffee .setText("");
txtHotCoffee.requestFocus();
}
else
{
txtHotCoffee.setEnabled(false);
txtHotCoffee.setText("0");
}
}
});
chckbxHotCoffee.setBackground(new Color(204, 153, 255));
chckbxHotCoffee.setFont(new Font("Times New Roman", Font.PLAIN,
14));
CoffeePanel.add(chckbxHotCoffee);

JLabel label_82 = new JLabel("100.00");


label_82.setBounds(785, 361, 46, 23);
label_82.setFont(new Font("Tahoma", Font.PLAIN, 14));
CoffeePanel.add(label_82);

JLabel label_83 = new JLabel("Qty");


label_83.setBounds(654, 391, 30, 23);
label_83.setFont(new Font("Tahoma", Font.PLAIN, 14));
CoffeePanel.add(label_83);

txtHotCoffee = new JTextField();


txtHotCoffee.setBounds(690, 391, 120, 23);
txtHotCoffee.setEnabled(false);
txtHotCoffee.setColumns(10);
CoffeePanel.add(txtHotCoffee);

JLabel lblCoffee_1 = new JLabel("--- COFFEE ---");


lblCoffee_1.setBounds(404, 11, 140, 32);
lblCoffee_1.setFont(new Font("Showcard Gothic", Font.PLAIN, 20));
CoffeePanel.add(lblCoffee_1);

JButton btnAddToOrder_21 = new JButton("ADD TO ORDER");


btnAddToOrder_21.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_21.setBounds(160, 216, 120, 23);
btnAddToOrder_21.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {

txtItems.setText(txtItems.getText()+"Cappuccino"+"\n");

txtQty.setText(txtQty.getText()+
txtCappuccino.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"130.00"+"\n");

itemcost[24] =
Double.parseDouble(txtCappuccino.getText())* 130.00;

txtAmount.setText(txtAmount.getText()+ itemcost[24] +
"\n" );
}
});
CoffeePanel.add(btnAddToOrder_21);
JButton btnAddToOrder_22 = new JButton("ADD TO ORDER");
btnAddToOrder_22.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_22.setBounds(422, 216, 120, 23);
btnAddToOrder_22.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Caramel
Machiatto"+"\n");

txtQty.setText(txtQty.getText()+
txtCaramel.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"145.00"+"\n");

itemcost[25] =
Double.parseDouble(txtCaramel.getText())* 145.00;

txtAmount.setText(txtAmount.getText()+ itemcost[25] +
"\n" );
}
});
CoffeePanel.add(btnAddToOrder_22);

JButton btnAddToOrder_23 = new JButton("ADD TO ORDER");


btnAddToOrder_23.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_23.setBounds(691, 216, 120, 23);
btnAddToOrder_23.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Coffee
Latte"+"\n");

txtQty.setText(txtQty.getText()+
txtLattee.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"125.00"+"\n");

itemcost[26] =
Double.parseDouble(txtLattee.getText())* 125.00;

txtAmount.setText(txtAmount.getText()+ itemcost[26] +
"\n" );
}
});
CoffeePanel.add(btnAddToOrder_23);

JButton btnAddToOrder_24 = new JButton("ADD TO ORDER");


btnAddToOrder_24.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_24.setBounds(157, 417, 120, 23);
btnAddToOrder_24.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Espresso"+"\n");

txtQty.setText(txtQty.getText()+
txtEspresso.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"110.00"+"\n");
itemcost[27] =
Double.parseDouble(txtEspresso.getText())* 110.00;

txtAmount.setText(txtAmount.getText()+ itemcost[27] +
"\n" );
}
});
CoffeePanel.add(btnAddToOrder_24);

JButton btnAddToOrder_25 = new JButton("ADD TO ORDER");


btnAddToOrder_25.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_25.setBounds(422, 417, 120, 23);
btnAddToOrder_25.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Hot
Chocolate"+"\n");

txtQty.setText(txtQty.getText()+
txtHotChoco.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"125.00"+"\n");

itemcost[28] =
Double.parseDouble(txtHotChoco.getText())* 125.00;

txtAmount.setText(txtAmount.getText()+ itemcost[28] +
"\n" );
}
});
CoffeePanel.add(btnAddToOrder_25);

JButton btnAddToOrder_26 = new JButton("ADD TO ORDER");


btnAddToOrder_26.setFont(new Font("Tahoma", Font.PLAIN, 10));
btnAddToOrder_26.setBounds(688, 417, 120, 23);
btnAddToOrder_26.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
txtItems.setText(txtItems.getText()+"Hot
Coffee"+"\n");

txtQty.setText(txtQty.getText()+
txtHotCoffee.getText()+"\n");

txtPrice.setText(txtPrice.getText()+"100.00"+"\n");

itemcost[29] =
Double.parseDouble(txtHotCoffee.getText())* 100.00;

txtAmount.setText(txtAmount.getText()+ itemcost[29] +
"\n" );
}
});
CoffeePanel.add(btnAddToOrder_26);

JLabel lblNewLabel_9 = new JLabel("New label");


lblNewLabel_9.setBounds(0, -5, 950, 460);
lblNewLabel_9.setIcon(new
ImageIcon(OrderMenu.class.getResource("/color2.png")));
CoffeePanel.add(lblNewLabel_9);

JLabel lblNewLabel_1 = new JLabel("");


lblNewLabel_1.setBounds(30, 0, 300, 100);
frame.getContentPane().add(lblNewLabel_1);
lblNewLabel_1.setBackground(new Color(240, 248, 255));
lblNewLabel_1.setIcon(new
ImageIcon(OrderMenu.class.getResource("/bmd.png")));

JPanel panel = new JPanel();


panel.setBounds(0, 0, 1366, 100);
frame.getContentPane().add(panel);
panel.setBackground(new Color(153, 204, 255));
panel.setLayout(null);

JLabel label_84 = new JLabel("X");


label_84.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent arg0) {

if (JOptionPane.showConfirmDialog(frame,"Confirm if
you want to exit?","Bakeshop Ordering Management System",
JOptionPane.YES_NO_OPTION) ==
JOptionPane.YES_OPTION){
LoginSystem.main(null);
frame.dispose();

}else{

}
});
label_84.setFont(new Font("Tahoma", Font.BOLD, 20));
label_84.setBounds(1332, 11, 24, 44);
panel.add(label_84);

JLabel lblNewLabel_4 = new JLabel("BAKESHOP ORDERING MANAGEMENT


SYSTEM");
lblNewLabel_4.setFont(new Font("Tempus Sans ITC", Font.BOLD,
30));
lblNewLabel_4.setBounds(336, 25, 724, 51);
panel.add(lblNewLabel_4);

lblDate = new JLabel("");


lblDate.setBorder(null);
lblDate.setFont(new Font("Tempus Sans ITC", Font.BOLD, 14));
lblDate.setBounds(1114, 66, 116, 29);
panel.add(lblDate);

lblTime = new JLabel("");


lblTime.setBorder(null);
lblTime.setFont(new Font("Tempus Sans ITC", Font.BOLD, 14));
lblTime.setBounds(1240, 66, 116, 29);
panel.add(lblTime);
JPanel panel_6 = new JPanel();
panel_6.setLayout(null);
panel_6.setBounds(1033, 554, 311, 143);
frame.getContentPane().add(panel_6);

JLabel label_85 = new JLabel("SubTotal");


label_85.setFont(new Font("Dialog", Font.PLAIN, 12));
label_85.setBounds(37, 9, 56, 14);
panel_6.add(label_85);

JLabel label_87 = new JLabel("VAT (12%)");


label_87.setFont(new Font("Dialog", Font.PLAIN, 12));
label_87.setBounds(28, 34, 65, 14);
panel_6.add(label_87);

JLabel label_88 = new JLabel("Total");


label_88.setFont(new Font("Dialog", Font.PLAIN, 12));
label_88.setBounds(58, 59, 35, 14);
panel_6.add(label_88);

JLabel label_89 = new JLabel("Cash");


label_89.setFont(new Font("Dialog", Font.PLAIN, 12));
label_89.setBounds(58, 84, 35, 14);
panel_6.add(label_89);

JLabel label_90 = new JLabel("Change");


label_90.setFont(new Font("Dialog", Font.PLAIN, 12));
label_90.setBounds(42, 111, 51, 14);
panel_6.add(label_90);

txtSubTotal = new JTextField();


txtSubTotal.setColumns(10);
txtSubTotal.setBounds(117, 9, 164, 20);
panel_6.add(txtSubTotal);

txtVat = new JTextField();


txtVat.setColumns(10);
txtVat.setBounds(117, 35, 164, 20);
panel_6.add(txtVat);

txtTotal = new JTextField();


txtTotal.setColumns(10);
txtTotal.setBounds(117, 60, 164, 20);
panel_6.add(txtTotal);

txtCash = new JTextField();


txtCash.addKeyListener(new KeyAdapter() {
@Override
public void keyPressed(KeyEvent e) {
if(e.getKeyCode()==KeyEvent.VK_ENTER){
double payment =
Double.valueOf(txtCash.getText())- Double.valueOf(txtTotal.getText());
String changge =String.format("Php %.2f",
payment);
txtChange.setText(changge);
}
}
});
txtCash.setColumns(10);
txtCash.setBounds(117, 87, 164, 20);
panel_6.add(txtCash);

txtChange = new JTextField();


txtChange.setColumns(10);
txtChange.setBounds(117, 112, 164, 20);
panel_6.add(txtChange);

JButton button = new JButton("Total");


button.setBackground(new Color(221, 160, 221));
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {

itemcost[30] = itemcost[2] + itemcost[3] +


itemcost[4] + itemcost[5] + itemcost[6] + itemcost[7] + itemcost[8] +
itemcost[9]
+ itemcost[10] + itemcost[11] +
itemcost[12] + itemcost[13] + itemcost[14] + itemcost[15] + itemcost[16] +
itemcost[17]
+ itemcost[18] + itemcost[19] +
itemcost[20] + itemcost[21] + itemcost[22] + itemcost[23] + itemcost[24] +
itemcost[25]
+ itemcost[26] + itemcost[27]
+ itemcost[28] + itemcost[29];
txtSubTotal.setText(txtSubTotal.getText()+
itemcost[30] + "\n" );
iTax = String.format("Php %.2f", itemcost[30] *
0.12/100);
txtVat.setText(txtVat.getText() + iTax);

iTotal=String.format("Php %.2f", itemcost[30] );


txtTotal.setText(txtTotal.getText() + iTotal);

}
});
button.setFont(new Font("Cambria", Font.BOLD, 12));
button.setBounds(1033, 708, 89, 37);
frame.getContentPane().add(button);

JButton btnReceipt = new JButton("Receipt");


btnReceipt.setBackground(new Color(221, 160, 221));
btnReceipt.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {

ReceiptForm receiptform = new ReceiptForm ();


receiptform.receipt();

String name=txtName.getText();
receiptform.lblName.setText(name);
}
});
btnReceipt.setFont(new Font("Cambria", Font.BOLD, 11));
btnReceipt.setBounds(1140, 708, 99, 37);
frame.getContentPane().add(btnReceipt);

JButton button_2 = new JButton("Reset");


button_2.setBackground(new Color(221, 160, 221));
button_2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
txtBlackForest.setText("0");
txtRedVelvet.setText("0");
txtYemaCake.setText("0");
txtMatchaCake.setText("0");
txtOreoCake.setText("0");
txtChocoMoose.setText("0");
txtStrawberryCake.setText("0");
txtMochaCake.setText("0");
txtBreadRoll.setText("0");
txtBreadStick.setText("0");
txtMacaroons.setText("0");
txtCupcake.setText("0");
txtCinnamon.setText("0");
txtSpanishBread.setText("0");
txtBrownies.setText("0");
txtEnsaymada.setText("0");
txtC2.setText("0");
txtCocacola.setText("0");
txtIcedTea.setText("0");
txtSprite.setText("0");
txtRoyal.setText("0");
txtMountainDew.setText("0");
txtEspresso.setText("0");
txtLattee.setText("0");
txtHotChoco.setText("0");
txtHotCoffee.setText("0");
txtCaramel.setText("0");
txtCappuccino.setText("0");
txtItems.setText(null);
txtQty.setText(null);
txtPrice.setText(null);
txtAmount.setText(null);
txtSubTotal.setText(null);

txtVat.setText(null);
txtTotal.setText(null);
txtCash.setText(null);
txtChange.setText(null);

txtBlackForest.setEnabled(false);
txtRedVelvet.setEnabled(false);
txtYemaCake.setEnabled(false);
txtMatchaCake.setEnabled(false);
txtOreoCake.setEnabled(false);
txtChocoMoose.setEnabled(false);
txtStrawberryCake.setEnabled(false);
txtMochaCake.setEnabled(false);
txtBreadRoll.setEnabled(false);
txtBreadStick.setEnabled(false);
txtMacaroons.setEnabled(false);
txtCupcake.setEnabled(false);
txtCinnamon.setEnabled(false);
txtSpanishBread.setEnabled(false);
txtBrownies.setEnabled(false);
txtEnsaymada.setEnabled(false);
txtC2.setEnabled(false);
txtCocacola.setEnabled(false);
txtIcedTea.setEnabled(false);
txtSprite.setEnabled(false);
txtRoyal.setEnabled(false);
txtMountainDew.setEnabled(false);
txtEspresso.setEnabled(false);
txtLattee.setEnabled(false);
txtHotChoco.setEnabled(false);
txtHotCoffee.setEnabled(false);
txtCaramel.setEnabled(false);
txtCappuccino.setEnabled(false);

chckbxBlackForest.setSelected(false);
chckbxRedVelvet.setSelected(false);
chckbxYemaCake.setSelected(false);
chkbxMatchaCake.setSelected(false);
chckbxOreoCake.setSelected(false);
chckbxChocomousse.setSelected(false);
chckbxStrawberry.setSelected(false);
chckbxMochaCake.setSelected(false);
chkbxBreadRoll.setSelected(false);
chkbxBreadStick.setSelected(false);
chkbxMacaroons.setSelected(false);
chkbxCupcake.setSelected(false);
chkbxCinnamon.setSelected(false);
chkbxSpanishBread.setSelected(false);
chkbxBrownies.setSelected(false);
chkbxEnsaymada.setSelected(false);
chkbxC2.setSelected(false);
chkbxCocacola.setSelected(false);
chkbxIcedTea.setSelected(false);
chkbxxSprite.setSelected(false);
chkbxRoyal.setSelected(false);
chkbxMountainDew.setSelected(false);
chckbxEspresso.setSelected(false);
chckbxCoffeeLatte.setSelected(false);
chckbxHotChocolate.setSelected(false);
chckbxHotCoffee.setSelected(false);
chckbxCaramelMachiatto.setSelected(false);
chckbxCappuccino.setSelected(false);

}
});
button_2.setFont(new Font("Cambria", Font.BOLD, 12));
button_2.setBounds(1255, 708, 89, 37);
frame.getContentPane().add(button_2);

JPanel panel_7 = new JPanel();


panel_7.setBounds(1033, 111, 311, 122);
frame.getContentPane().add(panel_7);
panel_7.setLayout(null);

JLabel lblReference = new JLabel("Reference #");


lblReference.setFont(new Font("Dialog", Font.PLAIN, 12));
lblReference.setBounds(30, 40, 74, 14);
panel_7.add(lblReference);

JLabel lblName = new JLabel("Name");


lblName.setFont(new Font("Dialog", Font.PLAIN, 12));
lblName.setBounds(65, 65, 40, 14);
panel_7.add(lblName);

JLabel lblContact = new JLabel("Contact #");


lblContact.setFont(new Font("Dialog", Font.PLAIN, 12));
lblContact.setBounds(45, 94, 57, 14);
panel_7.add(lblContact);

JLabel lblCustomersInfo = new JLabel("Customers Info");


lblCustomersInfo.setFont(new Font("Dialog", Font.PLAIN, 12));
lblCustomersInfo.setBounds(10, 11, 103, 14);
panel_7.add(lblCustomersInfo);

txtRef = new JTextField();


txtRef.setColumns(10);
txtRef.setBounds(110, 36, 180, 20);
panel_7.add(txtRef);

txtName = new JTextField();


txtName.setColumns(10);
txtName.setBounds(110, 63, 180, 20);
panel_7.add(txtName);

txtCon = new JTextField();


txtCon.setColumns(10);
txtCon.setBounds(110, 91, 180, 20);
panel_7.add(txtCon);

JPanel panel_8 = new JPanel();


panel_8.setBorder(new LineBorder(new Color(0, 0, 0)));
panel_8.setBackground(new Color(176, 224, 230));
panel_8.setBounds(1033, 240, 311, 24);
frame.getContentPane().add(panel_8);

JLabel lblOrderList = new JLabel("ORDER LIST");


panel_8.add(lblOrderList);

JPanel panel_2 = new JPanel();


panel_2.setBorder(new LineBorder(new Color(0, 0, 0)));
panel_2.setBounds(1033, 263, 311, 24);
frame.getContentPane().add(panel_2);
panel_2.setBackground(new Color(255, 222, 173));
panel_2.setLayout(null);

JLabel lblItems = new JLabel("ITEMS");


lblItems.setBounds(21, 0, 35, 25);
panel_2.add(lblItems);

JLabel lblQty_1 = new JLabel("QTY");


lblQty_1.setBounds(127, 0, 35, 25);
panel_2.add(lblQty_1);

JLabel lblPrice = new JLabel("PRICE");


lblPrice.setBounds(173, 0, 35, 25);
panel_2.add(lblPrice);

JLabel lblAmount = new JLabel("AMOUNT");


lblAmount.setBounds(229, 0, 61, 25);
panel_2.add(lblAmount);

txtItems = new JTextArea();


txtItems.setBounds(1033, 285, 128, 258);
frame.getContentPane().add(txtItems);

txtQty = new JTextArea();


txtQty.setBounds(1160, 285, 45, 258);
frame.getContentPane().add(txtQty);

txtPrice = new JTextArea();


txtPrice.setBounds(1204, 285, 60, 258);
frame.getContentPane().add(txtPrice);

txtAmount = new JTextArea();


txtAmount.setBounds(1264, 285, 80, 258);
frame.getContentPane().add(txtAmount);

JLabel lblBackground = new JLabel("New label");


lblBackground.setIcon(new
ImageIcon(OrderMenu.class.getResource("/gradient bg.png")));
lblBackground.setBounds(0, 0, 1366, 768);
frame.getContentPane().add(lblBackground);

}
}
ADMIN FORM

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.ImageIcon;
import javax.swing.JPanel;
import java.awt.Color;
import java.awt.Font;

import javax.swing.JButton;
import javax.swing.UIManager;
import javax.swing.JSeparator;
import javax.swing.SwingConstants;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JLayeredPane;
import java.awt.SystemColor;
import java.awt.CardLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JTextField;
import com.toedter.components.JSpinField;
import com.toedter.calendar.JMonthChooser;

import com.toedter.calendar.JYearChooser;

public class AdminForm {

private JFrame frame;


private JPanel panel_1;
private JPanel CustomerPanel;
private JPanel ItemPanel;
private JPanel HomePanel;
private JTextField textField;
private JTextField textField_1;
private JTextField textField_2;
private JTextField textField_3;
private JTextField textField_4;
private JTextField textField_5;
private JTextField textField_6;
private JTextField textField_7;
private JTextField textField_8;
private JTextField textField_9;
private JTextField textField_10;
private JTextField textField_11;
private JTextField textField_12;
private JTextField textField_13;
private JTextField textField_14;
private JTextField textField_15;
private JPanel CakePanel;
private JPanel BreadPastryPanel;
private JPanel DrinksPanel;
private JPanel CoffeePanel;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
AdminForm window = new AdminForm();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}

/**
* Create the application.
*/
public AdminForm() {
initialize();
}

/**
* Initialize the contents of the frame.
*/
private void initialize() {
frame = new JFrame();
frame.setUndecorated(true);
frame.setBounds(0, 0, 1366, 768);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);

JPanel panel = new JPanel();


panel.setLayout(null);
panel.setBackground(new Color(153, 204, 255));
panel.setBounds(0, 0, 1366, 89);
frame.getContentPane().add(panel);

JLabel label = new JLabel("New label");


label.setIcon(new
ImageIcon(AdminForm.class.getResource("/bmd.png")));
label.setBounds(30, 0, 274, 89);
panel.add(label);

JLabel label_2 = new JLabel("X");


label_2.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
frame =new JFrame();
if (JOptionPane.showConfirmDialog(frame,"Confirm if
you want to exit?","Bakeshop Ordering Management System",
JOptionPane.YES_NO_OPTION) ==
JOptionPane.YES_NO_OPTION){
System.exit(0);
}
}
});
label_2.setFont(new Font("Tahoma", Font.BOLD, 20));
label_2.setBounds(1332, 11, 24, 44);
panel.add(label_2);

JButton btnNewButton = new JButton("Home");


btnNewButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
HomePanel.setVisible(true);
ItemPanel.setVisible(false);
CustomerPanel.setVisible(false);

}
});

btnNewButton.setFont(new Font("Georgia", Font.BOLD, 20));


btnNewButton.setBounds(28, 97, 89, 47);
frame.getContentPane().add(btnNewButton);
btnNewButton.setOpaque(false);
btnNewButton.setBorderPainted(false);
btnNewButton.setBorder(null);
btnNewButton.setBackground(new Color(215, 228, 242));

panel_1 = new JPanel();


panel_1.setBackground(new Color(240, 248, 255));
panel_1.setBounds(0, 97, 1366, 47);
frame.getContentPane().add(panel_1);
panel_1.setLayout(null);

JSeparator separator = new JSeparator();


separator.setOrientation(SwingConstants.VERTICAL);
separator.setForeground(Color.BLACK);
separator.setBackground(Color.BLACK);
separator.setBounds(119, 0, 7, 47);
panel_1.add(separator);

JButton btnItem = new JButton("Item");


btnItem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
ItemPanel.setVisible(true);
HomePanel.setVisible(false);
CustomerPanel.setVisible(false);

}
});
btnItem.setOpaque(false);
btnItem.setFont(new Font("Georgia", Font.BOLD, 20));
btnItem.setBorderPainted(false);
btnItem.setBorder(null);

btnItem.setBackground(UIManager.getColor("InternalFrame.inactiveTitleGr
adient"));
btnItem.setBounds(125, 0, 89, 47);
panel_1.add(btnItem);
JSeparator separator_1 = new JSeparator();
separator_1.setOrientation(SwingConstants.VERTICAL);
separator_1.setForeground(Color.BLACK);
separator_1.setBackground(Color.BLACK);
separator_1.setBounds(216, 0, 7, 47);
panel_1.add(separator_1);

JButton btnCustomers = new JButton("Sales");


btnCustomers.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
CustomerPanel.setVisible(true);
HomePanel.setVisible(false);
ItemPanel.setVisible(false);

}
});
btnCustomers.setOpaque(false);
btnCustomers.setFont(new Font("Georgia", Font.BOLD, 20));
btnCustomers.setBorderPainted(false);
btnCustomers.setBorder(null);

btnCustomers.setBackground(UIManager.getColor("InternalFrame.inactiveTi
tleGradient"));
btnCustomers.setBounds(222, 0, 89, 47);
panel_1.add(btnCustomers);

JSeparator separator_3 = new JSeparator();


separator_3.setOrientation(SwingConstants.VERTICAL);
separator_3.setForeground(Color.BLACK);
separator_3.setBackground(Color.BLACK);
separator_3.setBounds(313, 0, 5, 47);
panel_1.add(separator_3);

JButton btnOrdering = new JButton("Ordering");


btnOrdering.setBounds(321, 0, 101, 47);
panel_1.add(btnOrdering);
btnOrdering.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
OrderMenu OrderForm = new OrderMenu ();
OrderForm.main(null);
String AdminForm; frame.dispose();
}
});
btnOrdering.setOpaque(false);
btnOrdering.setFont(new Font("Georgia", Font.BOLD, 20));
btnOrdering.setBorderPainted(false);
btnOrdering.setBorder(null);

btnOrdering.setBackground(UIManager.getColor("InternalFrame.inactiveTit
leGradient"));

JSeparator separator_4 = new JSeparator();


separator_4.setOrientation(SwingConstants.VERTICAL);
separator_4.setForeground(Color.BLACK);
separator_4.setBackground(Color.BLACK);
separator_4.setBounds(411, 0, 7, 47);
panel_1.add(separator_4);
panel.setLayout(null);
panel.setLayout(null);
panel.setLayout(null);

JLabel label_23 = new JLabel("BAKESHOP ORDERING MANAGEMENT


SYSTEM");
label_23.setFont(new Font("Tempus Sans ITC", Font.BOLD, 30));
label_23.setBounds(360, 25, 724, 44);
panel.add(label_23);

JLayeredPane layeredPane = new JLayeredPane();


layeredPane.setBounds(28, 170, 1310, 572);
frame.getContentPane().add(layeredPane);
layeredPane.setLayout(new CardLayout(0, 0));

HomePanel = new JPanel();


HomePanel.setBackground(new Color(255, 240, 245));
layeredPane.add(HomePanel, "name_8699537405602");
HomePanel.setLayout(null);

JLabel lblNewLabel_4 = new JLabel("New label");


lblNewLabel_4.setIcon(new
ImageIcon(AdminForm.class.getResource("/pic3.png")));
lblNewLabel_4.setBounds(355, 11, 945, 550);
HomePanel.add(lblNewLabel_4);

JLabel lblNewLabel_5 = new JLabel("Bake ");


lblNewLabel_5.setForeground(new Color(238, 130, 238));
lblNewLabel_5.setFont(new Font("Imprint MT Shadow", Font.PLAIN,
50));
lblNewLabel_5.setBounds(115, 130, 118, 125);
HomePanel.add(lblNewLabel_5);

JLabel lblTheWorld = new JLabel("the WORLD");


lblTheWorld.setForeground(new Color(238, 130, 238));
lblTheWorld.setFont(new Font("Constantia", Font.PLAIN, 33));
lblTheWorld.setBounds(81, 165, 201, 176);
HomePanel.add(lblTheWorld);

JLabel lblABetterPlace = new JLabel(" a better place");


lblABetterPlace.setForeground(new Color(0, 0, 0));
lblABetterPlace.setFont(new Font("Freestyle Script", Font.PLAIN,
36));
lblABetterPlace.setBounds(91, 214, 225, 176);
HomePanel.add(lblABetterPlace);

ItemPanel = new JPanel();


ItemPanel.setBackground(new Color(240, 248, 255));
layeredPane.add(ItemPanel, "name_8699512893334");
ItemPanel.setLayout(null);

JLabel lblNewLabel_2 = new JLabel("New label");


lblNewLabel_2.setIcon(new
ImageIcon(AdminForm.class.getResource("/Picture7.png")));
lblNewLabel_2.setBounds(48, 39, 90, 73);
ItemPanel.add(lblNewLabel_2);
JLabel label_3 = new JLabel("New label");
label_3.setIcon(new
ImageIcon(AdminForm.class.getResource("/Picture4.png")));
label_3.setBounds(48, 161, 90, 76);
ItemPanel.add(label_3);

JLabel label_4 = new JLabel("New label");


label_4.setIcon(new
ImageIcon(AdminForm.class.getResource("/Picture15.png")));
label_4.setBounds(48, 280, 90, 74);
ItemPanel.add(label_4);

JLabel label_1 = new JLabel("New label");


label_1.setIcon(new
ImageIcon(AdminForm.class.getResource("/Picture13.png")));
label_1.setBounds(48, 411, 90, 74);
ItemPanel.add(label_1);

JButton btnNewButton_1 = new JButton("Cakes");


btnNewButton_1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
CakePanel.setVisible(true);
BreadPastryPanel.setVisible(false);
DrinksPanel.setVisible(false);
CoffeePanel.setVisible(false);
}
});
btnNewButton_1.setFont(new Font("Kristen ITC", Font.PLAIN, 30));
btnNewButton_1.setBackground(new Color(0, 191, 255));
btnNewButton_1.setBounds(148, 32, 298, 80);
ItemPanel.add(btnNewButton_1);

JButton btnBreadPastry = new JButton("Bread & Pastry");


btnBreadPastry.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
CakePanel.setVisible(false);
BreadPastryPanel.setVisible(true);
DrinksPanel.setVisible(false);
CoffeePanel.setVisible(false);
}
});
btnBreadPastry.setFont(new Font("Kristen ITC", Font.PLAIN, 30));
btnBreadPastry.setBackground(new Color(0, 191, 255));
btnBreadPastry.setBounds(148, 157, 298, 80);
ItemPanel.add(btnBreadPastry);

JButton btnDrinks = new JButton("Drinks");


btnDrinks.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
CakePanel.setVisible(false);
BreadPastryPanel.setVisible(false);
DrinksPanel.setVisible(true);
CoffeePanel.setVisible(false);
}
});
btnDrinks.setFont(new Font("Kristen ITC", Font.PLAIN, 30));
btnDrinks.setBackground(new Color(0, 191, 255));
btnDrinks.setBounds(148, 280, 298, 80);
ItemPanel.add(btnDrinks);

JButton btnCoffee = new JButton("Coffee");


btnCoffee.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
CakePanel.setVisible(false);
BreadPastryPanel.setVisible(false);
DrinksPanel.setVisible(false);
CoffeePanel.setVisible(true);
}
});
btnCoffee.setFont(new Font("Kristen ITC", Font.PLAIN, 30));
btnCoffee.setBackground(new Color(0, 191, 255));
btnCoffee.setBounds(148, 411, 298, 80);
ItemPanel.add(btnCoffee);

JLabel lblNewLabel_1 = new JLabel("New label");


lblNewLabel_1.setIcon(new
ImageIcon(AdminForm.class.getResource("/color2.png")));
lblNewLabel_1.setBounds(0, 0, 493, 571);
ItemPanel.add(lblNewLabel_1);

JLayeredPane layeredPane_1 = new JLayeredPane();


layeredPane_1.setBounds(495, 0, 815, 571);
ItemPanel.add(layeredPane_1);
layeredPane_1.setLayout(new CardLayout(0, 0));

CakePanel = new JPanel();


CakePanel.setBackground(new Color(240, 248, 255));
layeredPane_1.add(CakePanel, "name_5240717780745");
CakePanel.setLayout(null);

JLabel lblProductId = new JLabel("Product ID");


lblProductId.setBounds(37, 41, 95, 29);
lblProductId.setFont(new Font("MS Reference Sans Serif",
Font.PLAIN, 15));
CakePanel.add(lblProductId);

JLabel lblProductName = new JLabel("Product Name");


lblProductName.setBounds(37, 81, 109, 29);
lblProductName.setFont(new Font("MS Reference Sans Serif",
Font.PLAIN, 15));
CakePanel.add(lblProductName);

JLabel lblPrice = new JLabel("Price");


lblPrice.setBounds(37, 121, 54, 29);
lblPrice.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
CakePanel.add(lblPrice);

textField = new JTextField();


textField.setBounds(168, 41, 202, 26);
CakePanel.add(textField);
textField.setColumns(10);

textField_1 = new JTextField();


textField_1.setBounds(168, 78, 202, 29);
textField_1.setColumns(10);
CakePanel.add(textField_1);

textField_2 = new JTextField();


textField_2.setBounds(168, 118, 202, 29);
textField_2.setColumns(10);
CakePanel.add(textField_2);

textField_3 = new JTextField();


textField_3.setBounds(168, 158, 202, 29);
textField_3.setColumns(10);
CakePanel.add(textField_3);

JLabel lblStock = new JLabel("Stock");


lblStock.setBounds(37, 161, 68, 29);
lblStock.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
CakePanel.add(lblStock);

JLabel lblDateManufactured = new JLabel("Date Manufactured");


lblDateManufactured.setBounds(418, 41, 151, 29);
lblDateManufactured.setFont(new Font("MS Reference Sans Serif",
Font.PLAIN, 15));
CakePanel.add(lblDateManufactured);

JMonthChooser monthChooser = new JMonthChooser();


monthChooser.setBounds(418, 81, 98, 20);
CakePanel.add(monthChooser);

JSpinField spinField = new JSpinField();


spinField.setBounds(526, 81, 29, 20);
CakePanel.add(spinField);

JYearChooser yearChooser = new JYearChooser();


yearChooser.setBounds(565, 81, 47, 20);
CakePanel.add(yearChooser);

JLabel lblDateExpired = new JLabel("Date Expired");


lblDateExpired.setBounds(418, 121, 151, 29);
lblDateExpired.setFont(new Font("MS Reference Sans Serif",
Font.PLAIN, 15));
CakePanel.add(lblDateExpired);

JMonthChooser monthChooser_1 = new JMonthChooser();


monthChooser_1.setBounds(418, 161, 98, 20);
CakePanel.add(monthChooser_1);

JSpinField spinField_1 = new JSpinField();


spinField_1.setBounds(526, 161, 29, 20);
CakePanel.add(spinField_1);

JYearChooser yearChooser_1 = new JYearChooser();


yearChooser_1.setBounds(565, 161, 47, 20);
CakePanel.add(yearChooser_1);

JPanel panel_7 = new JPanel();


panel_7.setBounds(37, 209, 746, 328);
CakePanel.add(panel_7);
panel_7.setLayout(null);

BreadPastryPanel = new JPanel();


BreadPastryPanel.setBackground(new Color(240, 248, 255));
layeredPane_1.add(BreadPastryPanel, "name_5240731011702");
BreadPastryPanel.setLayout(null);

JLabel label_5 = new JLabel("Product ID");


label_5.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_5.setBounds(37, 35, 95, 29);
BreadPastryPanel.add(label_5);

textField_4 = new JTextField();


textField_4.setColumns(10);
textField_4.setBounds(168, 35, 202, 26);
BreadPastryPanel.add(textField_4);

JLabel label_6 = new JLabel("Product Name");


label_6.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_6.setBounds(37, 75, 109, 29);
BreadPastryPanel.add(label_6);

textField_5 = new JTextField();


textField_5.setColumns(10);
textField_5.setBounds(168, 72, 202, 29);
BreadPastryPanel.add(textField_5);

JLabel label_7 = new JLabel("Price");


label_7.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_7.setBounds(37, 115, 54, 29);
BreadPastryPanel.add(label_7);

textField_6 = new JTextField();


textField_6.setColumns(10);
textField_6.setBounds(168, 112, 202, 29);
BreadPastryPanel.add(textField_6);

JLabel label_8 = new JLabel("Stock");


label_8.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_8.setBounds(37, 155, 68, 29);
BreadPastryPanel.add(label_8);

textField_7 = new JTextField();


textField_7.setColumns(10);
textField_7.setBounds(168, 152, 202, 29);
BreadPastryPanel.add(textField_7);

JLabel label_9 = new JLabel("Date Expired");


label_9.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_9.setBounds(418, 115, 151, 29);
BreadPastryPanel.add(label_9);

JLabel label_10 = new JLabel("Date Manufactured");


label_10.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_10.setBounds(418, 35, 151, 29);
BreadPastryPanel.add(label_10);

JPanel panel_11 = new JPanel();


panel_11.setLayout(null);
panel_11.setBounds(37, 203, 746, 328);
BreadPastryPanel.add(panel_11);

JMonthChooser monthChooser_2 = new JMonthChooser();


monthChooser_2.setBounds(418, 75, 98, 20);
BreadPastryPanel.add(monthChooser_2);

JSpinField spinField_2 = new JSpinField();


spinField_2.setBounds(529, 75, 29, 20);
BreadPastryPanel.add(spinField_2);

JYearChooser yearChooser_2 = new JYearChooser();


yearChooser_2.setBounds(568, 75, 47, 20);
BreadPastryPanel.add(yearChooser_2);

JMonthChooser monthChooser_3 = new JMonthChooser();


monthChooser_3.setBounds(418, 155, 98, 20);
BreadPastryPanel.add(monthChooser_3);

JSpinField spinField_3 = new JSpinField();


spinField_3.setBounds(529, 155, 29, 20);
BreadPastryPanel.add(spinField_3);

JYearChooser yearChooser_3 = new JYearChooser();


yearChooser_3.setBounds(568, 155, 47, 20);
BreadPastryPanel.add(yearChooser_3);

DrinksPanel = new JPanel();


DrinksPanel.setBackground(new Color(240, 248, 255));
layeredPane_1.add(DrinksPanel, "name_5240744462491");
DrinksPanel.setLayout(null);

JLabel label_11 = new JLabel("Product ID");


label_11.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_11.setBounds(34, 41, 95, 29);
DrinksPanel.add(label_11);

JLabel label_12 = new JLabel("Product Name");


label_12.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_12.setBounds(34, 81, 109, 29);
DrinksPanel.add(label_12);

JLabel label_13 = new JLabel("Price");


label_13.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_13.setBounds(34, 121, 54, 29);
DrinksPanel.add(label_13);

JLabel label_14 = new JLabel("Stock");


label_14.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_14.setBounds(34, 161, 68, 29);
DrinksPanel.add(label_14);

textField_8 = new JTextField();


textField_8.setColumns(10);
textField_8.setBounds(165, 161, 202, 26);
DrinksPanel.add(textField_8);

textField_9 = new JTextField();


textField_9.setColumns(10);
textField_9.setBounds(165, 121, 202, 26);
DrinksPanel.add(textField_9);

textField_10 = new JTextField();


textField_10.setColumns(10);
textField_10.setBounds(165, 81, 202, 26);
DrinksPanel.add(textField_10);

textField_11 = new JTextField();


textField_11.setColumns(10);
textField_11.setBounds(165, 41, 202, 26);
DrinksPanel.add(textField_11);

JLabel label_15 = new JLabel("Date Manufactured");


label_15.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_15.setBounds(415, 41, 151, 29);
DrinksPanel.add(label_15);

JLabel label_16 = new JLabel("Date Expired");


label_16.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_16.setBounds(415, 121, 151, 29);
DrinksPanel.add(label_16);

JPanel panel_12 = new JPanel();


panel_12.setLayout(null);
panel_12.setBounds(34, 209, 746, 328);
DrinksPanel.add(panel_12);

JMonthChooser monthChooser_4 = new JMonthChooser();


monthChooser_4.setBounds(415, 81, 98, 20);
DrinksPanel.add(monthChooser_4);

JSpinField spinField_4 = new JSpinField();


spinField_4.setBounds(523, 81, 29, 20);
DrinksPanel.add(spinField_4);

JYearChooser yearChooser_4 = new JYearChooser();


yearChooser_4.setBounds(562, 81, 47, 20);
DrinksPanel.add(yearChooser_4);
JMonthChooser monthChooser_5 = new JMonthChooser();
monthChooser_5.setBounds(415, 155, 98, 20);
DrinksPanel.add(monthChooser_5);

JSpinField spinField_5 = new JSpinField();


spinField_5.setBounds(523, 155, 29, 20);
DrinksPanel.add(spinField_5);

JYearChooser yearChooser_5 = new JYearChooser();


yearChooser_5.setBounds(562, 155, 47, 20);
DrinksPanel.add(yearChooser_5);

CoffeePanel = new JPanel();


CoffeePanel.setBackground(new Color(240, 248, 255));
layeredPane_1.add(CoffeePanel, "name_5240758097025");
CoffeePanel.setLayout(null);

JLabel label_17 = new JLabel("Product ID");


label_17.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_17.setBounds(37, 42, 95, 29);
CoffeePanel.add(label_17);

JLabel label_18 = new JLabel("Product Name");


label_18.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_18.setBounds(37, 82, 109, 29);
CoffeePanel.add(label_18);

JLabel label_19 = new JLabel("Price");


label_19.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_19.setBounds(37, 122, 54, 29);
CoffeePanel.add(label_19);

JLabel label_20 = new JLabel("Stock");


label_20.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_20.setBounds(37, 162, 68, 29);
CoffeePanel.add(label_20);

textField_12 = new JTextField();


textField_12.setColumns(10);
textField_12.setBounds(168, 162, 202, 26);
CoffeePanel.add(textField_12);

textField_13 = new JTextField();


textField_13.setColumns(10);
textField_13.setBounds(168, 122, 202, 26);
CoffeePanel.add(textField_13);

textField_14 = new JTextField();


textField_14.setColumns(10);
textField_14.setBounds(168, 79, 202, 29);
CoffeePanel.add(textField_14);
textField_15 = new JTextField();
textField_15.setColumns(10);
textField_15.setBounds(168, 42, 202, 26);
CoffeePanel.add(textField_15);

JLabel label_21 = new JLabel("Date Manufactured");


label_21.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_21.setBounds(418, 42, 151, 29);
CoffeePanel.add(label_21);

JLabel label_22 = new JLabel("Date Expired");


label_22.setFont(new Font("MS Reference Sans Serif", Font.PLAIN,
15));
label_22.setBounds(418, 122, 151, 29);
CoffeePanel.add(label_22);

JPanel panel_13 = new JPanel();


panel_13.setLayout(null);
panel_13.setBounds(37, 210, 746, 328);
CoffeePanel.add(panel_13);

JMonthChooser monthChooser_6 = new JMonthChooser();


monthChooser_6.setBounds(418, 82, 98, 20);
CoffeePanel.add(monthChooser_6);

JSpinField spinField_6 = new JSpinField();


spinField_6.setBounds(526, 82, 29, 20);
CoffeePanel.add(spinField_6);

JYearChooser yearChooser_6 = new JYearChooser();


yearChooser_6.setBounds(565, 82, 47, 20);
CoffeePanel.add(yearChooser_6);

JMonthChooser monthChooser_7 = new JMonthChooser();


monthChooser_7.setBounds(418, 152, 98, 20);
CoffeePanel.add(monthChooser_7);

JSpinField spinField_7 = new JSpinField();


spinField_7.setBounds(526, 152, 29, 20);
CoffeePanel.add(spinField_7);

JYearChooser yearChooser_7 = new JYearChooser();


yearChooser_7.setBounds(565, 152, 47, 20);
CoffeePanel.add(yearChooser_7);

CustomerPanel = new JPanel();


CustomerPanel.setBackground(new Color(255, 228, 225));
layeredPane.add(CustomerPanel, "name_8699524173417");
CustomerPanel.setLayout(null);

JLabel lblNewLabel_6 = new JLabel("Customer Report");


lblNewLabel_6.setFont(new Font("MS UI Gothic", Font.PLAIN, 30));
lblNewLabel_6.setBounds(80, 21, 395, 59);
CustomerPanel.add(lblNewLabel_6);

JPanel panel_2 = new JPanel();


panel_2.setBounds(80, 94, 514, 444);
CustomerPanel.add(panel_2);

JPanel panel_4 = new JPanel();


panel_4.setBounds(695, 94, 514, 444);
CustomerPanel.add(panel_4);

JPanel StaffPanel = new JPanel();


StaffPanel.setBackground(new Color(240, 248, 255));
layeredPane.add(StaffPanel, "name_53408574510900");
StaffPanel.setLayout(null);

JPanel panel_5 = new JPanel();


panel_5.setBounds(259, 101, 946, 444);
StaffPanel.add(panel_5);

JLabel lblEmployeeDetails = new JLabel("Employee Details");


lblEmployeeDetails.setFont(new Font("MS UI Gothic", Font.PLAIN,
30));
lblEmployeeDetails.setBounds(91, 26, 241, 59);
StaffPanel.add(lblEmployeeDetails);

JButton btnAdd = new JButton("Add ");


btnAdd.setFont(new Font("Modern No. 20", Font.PLAIN, 15));
btnAdd.setBounds(91, 120, 126, 38);
StaffPanel.add(btnAdd);

JButton btnRemove = new JButton("Remove");


btnRemove.setFont(new Font("Modern No. 20", Font.PLAIN, 15));
btnRemove.setBounds(91, 183, 126, 38);
StaffPanel.add(btnRemove);

JButton btnView = new JButton("View\r\n");


btnView.setFont(new Font("Modern No. 20", Font.PLAIN, 15));
btnView.setBounds(91, 250, 126, 38);
StaffPanel.add(btnView);

JButton btnEdit = new JButton("Edit");


btnEdit.setFont(new Font("Modern No. 20", Font.PLAIN, 15));
btnEdit.setBounds(91, 321, 126, 38);
StaffPanel.add(btnEdit);

JLabel lblNewLabel = new JLabel("New label");


lblNewLabel.setIcon(new
ImageIcon(AdminForm.class.getResource("/bgcolor.png")));
lblNewLabel.setBounds(0, 0, 1366, 768);
frame.getContentPane().add(lblNewLabel);
}
}
DATABASE
CODE
LOGIN FORM

Public Class LoginForm


Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles
btnExit.Click
Me.Close()

End Sub

Private Sub btnLogin_Click(sender As Object, e As EventArgs) Handles


btnLogin.Click
If txtUsername.Text = My.Settings.AdminUser And txtPassword.Text =
My.Settings.AdminPassword Then
Call Admin()
Me.Hide()
txtUsername.Text = String.Empty
txtPassword.Text = String.Empty

ElseIf txtUsername.Text = My.Settings.EmplUser And txtPassword.Text =


My.Settings.EmplPassword Then
Call Employee()
Me.Hide()
txtUsername.Text = String.Empty
txtPassword.Text = String.Empty

ElseIf txtUsername.Text = "" And txtPassword.Text = "" Then


MsgBox("Please fill up all textboxes!")
txtUsername.Focus()

Else
MsgBox("Incorrect Username/Password!")
txtUsername.Text = String.Empty
txtPassword.Text = String.Empty

End If
End Sub

Private Sub Admin()


AdminPanel.Show()
End Sub

Private Sub Employee()


EmployeePanel.Show()
End Sub
End Class
ORDER MENU FORM

Public Class EmployeePanel


Private ReadOnly ListBox2 As Object
Dim Amount As Double
Dim a As Integer

Private Sub picLogout_Click(sender As Object, e As EventArgs) Handles


picLogout.Click
If MessageBox.Show("Do you really want to logout?", "Error",
MessageBoxButtons.YesNo, MessageBoxIcon.Information) =
Windows.Forms.DialogResult.Yes Then
LoginForm.Show()
Me.Close()
End If
End Sub

Private Sub EmployeePanel_Load(sender As Object, e As EventArgs) Handles


MyBase.Load

Timer1.Enabled = True

CoffeePanel.BackColor = Color.FromArgb(45, 201, 3, 255)


CakePanel.BackColor = Color.FromArgb(45, 201, 3, 255)
BreadAndPastryPanel.BackColor = Color.FromArgb(45, 201, 3, 255)
DrinksPanel.BackColor = Color.FromArgb(45, 201, 3, 255)

txtBlackForest.Text = "0"
txtBreadRoll.Text = "0"
txtBreadStick.Text = "0"
txtBrownies.Text = "0"
txtC2.Text = "0"
txtCappuccino.Text = "0"
txtChocoMousse.Text = "0"
txtCinnamon.Text = "0"
txtCocaCola.Text = "0"
txtCupcakes.Text = "0"
txtEnsaymada.Text = "0"
txtEnsaymada.Text = "0"
txtEspresso.Text = "0"
txtHotChoco.Text = "0"
txtHotCoffee.Text = "0"
txtIcedTea.Text = "0"
txtLatte.Text = "0"
txtMacarons.Text = "0"
txtMachiatto.Text = "0"
txtMatcha.Text = "0"
txtMocha.Text = "0"
txtMtnDew.Text = "0"
txtOreo.Text = "0"
txtRedVelvet.Text = "0"
txtRoyal.Text = "0"
txtSpanishBread.Text = "0"
txtSprite.Text = "0"
txtStrawberry.Text = "0"
txtYema.Text = "0"

txtBlackForest.Enabled = False
txtBreadRoll.Enabled = False
txtBreadStick.Enabled = False
txtBrownies.Enabled = False
txtC2.Enabled = False
txtCappuccino.Enabled = False
txtChocoMousse.Enabled = False
txtCinnamon.Enabled = False
txtCocaCola.Enabled = False
txtCupcakes.Enabled = False
txtEnsaymada.Enabled = False
txtEspresso.Enabled = False
txtHotChoco.Enabled = False
txtHotCoffee.Enabled = False
txtIcedTea.Enabled = False
txtLatte.Enabled = False
txtMacarons.Enabled = False
txtMachiatto.Enabled = False
txtMatcha.Enabled = False
txtMocha.Enabled = False
txtMtnDew.Enabled = False
txtOreo.Enabled = False
txtRedVelvet.Enabled = False
txtRoyal.Enabled = False
txtSpanishBread.Enabled = False
txtSprite.Enabled = False
txtStrawberry.Enabled = False
txtYema.Enabled = False

chkBlackForest.Checked = False
chkBreadRoll.Checked = False
chkBreadStick.Checked = False
chkBrownies.Checked = False
chkC2.Checked = False
chkCappuccino.Checked = False
chkChocoMousse.Checked = False
chkCinnamon.Checked = False
chkCocaCola.Checked = False
chkCupcakes.Checked = False
chkEnsaymada.Checked = False
chkEspresso.Checked = False
chkHotChoco.Checked = False
chkHotCoffee.Checked = False
chkIcedTea.Checked = False
chkLatte.Checked = False
chkMacarons.Checked = False
chkMachiatto.Checked = False
chkMatcha.Checked = False
chkMocha.Checked = False
chkMtnDew.Checked = False
chkOreo.Checked = False
chkRedVelvet.Checked = False
chkRoyal.Checked = False
chkSpanishBread.Checked = False
chkSprite.Checked = False
chkStrawberry.Checked = False
chkYema.Checked = False

End Sub

Private Sub chkBlackForest_CheckedChanged(sender As Object, e As


EventArgs) Handles chkBlackForest.CheckedChanged
If (chkBlackForest.Checked = True) Then
txtBlackForest.Enabled = True
End If

If (chkBlackForest.Checked = False) Then


txtBlackForest.Enabled = False
End If
End Sub

Private Sub txtBlackForest_Click(sender As Object, e As EventArgs)


Handles txtBlackForest.Click
txtBlackForest.Text = ""
txtBlackForest.Focus()
End Sub

Private Sub chkChocoMousse_CheckedChanged(sender As Object, e As


EventArgs) Handles chkChocoMousse.CheckedChanged
If (chkChocoMousse.Checked = True) Then
txtChocoMousse.Enabled = True
End If

If (chkChocoMousse.Checked = False) Then


txtChocoMousse.Enabled = False
End If
End Sub

Private Sub txtChocoMousse_Click(sender As Object, e As EventArgs)


Handles txtChocoMousse.Click
txtChocoMousse.Text = ""
txtChocoMousse.Focus()
End Sub

Private Sub chkMatcha_CheckedChanged(sender As Object, e As EventArgs)


Handles chkMatcha.CheckedChanged
If (chkMatcha.Checked = True) Then
txtMatcha.Enabled = True
End If

If (chkMatcha.Checked = False) Then


txtMatcha.Enabled = False
End If
End Sub

Private Sub txtMatcha_Click(sender As Object, e As EventArgs) Handles


txtMatcha.Click
txtMatcha.Text = ""
txtMatcha.Focus()
End Sub
Private Sub chkMocha_CheckedChanged(sender As Object, e As EventArgs)
Handles chkMocha.CheckedChanged
If (chkMocha.Checked = True) Then
txtMocha.Enabled = True
End If

If (chkMocha.Checked = False) Then


txtMocha.Enabled = False
End If
End Sub

Private Sub txtMocha_Click(sender As Object, e As EventArgs) Handles


txtMocha.Click
txtMocha.Text = ""
txtMocha.Focus()
End Sub

Private Sub chkOreo_CheckedChanged(sender As Object, e As EventArgs)


Handles chkOreo.CheckedChanged
If (chkOreo.Checked = True) Then
txtOreo.Enabled = True
End If

If (chkOreo.Checked = False) Then


txtOreo.Enabled = False
End If
End Sub

Private Sub txtOreo_Click(sender As Object, e As EventArgs) Handles


txtOreo.Click
txtOreo.Text = ""
txtOreo.Focus()
End Sub

Private Sub chkRedVelvet_CheckedChanged(sender As Object, e As EventArgs)


Handles chkRedVelvet.CheckedChanged
If (chkRedVelvet.Checked = True) Then
txtRedVelvet.Enabled = True
End If

If (chkRedVelvet.Checked = False) Then


txtRedVelvet.Enabled = False
End If
End Sub

Private Sub txtRedVelvet_Click(sender As Object, e As EventArgs) Handles


txtRedVelvet.Click
txtRedVelvet.Text = ""
txtRedVelvet.Focus()
End Sub

Private Sub chkStrawberry_CheckedChanged(sender As Object, e As


EventArgs) Handles chkStrawberry.CheckedChanged
If (chkStrawberry.Checked = True) Then
txtStrawberry.Enabled = True
End If
If (chkStrawberry.Checked = False) Then
txtStrawberry.Enabled = False
End If
End Sub

Private Sub txtStrawberry_Click(sender As Object, e As EventArgs) Handles


txtStrawberry.Click
txtStrawberry.Text = ""
txtStrawberry.Focus()
End Sub

Private Sub chkYema_CheckedChanged(sender As Object, e As EventArgs)


Handles chkYema.CheckedChanged
If (chkYema.Checked = True) Then
txtYema.Enabled = True
End If

If (chkYema.Checked = False) Then


txtYema.Enabled = False
End If
End Sub

Private Sub txtYema_Click(sender As Object, e As EventArgs)


txtYema.Text = ""
txtYema.Focus()
End Sub

Private Sub chkBreadRoll_CheckedChanged(sender As Object, e As EventArgs)


Handles chkBreadRoll.CheckedChanged
If (chkBreadRoll.Checked = True) Then
txtBreadRoll.Enabled = True
End If

If (chkBreadRoll.Checked = False) Then


txtBreadRoll.Enabled = False
End If
End Sub

Private Sub txtBreadRoll_Click(sender As Object, e As EventArgs) Handles


txtBreadRoll.Click
txtBreadRoll.Text = ""
txtBreadRoll.Focus()
End Sub

Private Sub chkBreadStick_CheckedChanged(sender As Object, e As


EventArgs) Handles chkBreadStick.CheckedChanged
If (chkBreadStick.Checked = True) Then
txtBreadStick.Enabled = True
End If

If (chkBreadStick.Checked = False) Then


txtBreadStick.Enabled = False
End If
End Sub

Private Sub txtBreadStick_Click(sender As Object, e As EventArgs) Handles


txtBreadStick.Click
txtBreadStick.Text = ""
txtBreadStick.Focus()
End Sub

Private Sub chkBrownies_CheckedChanged(sender As Object, e As EventArgs)


Handles chkBrownies.CheckedChanged
If (chkBrownies.Checked = True) Then
txtBrownies.Enabled = True
End If

If (chkBrownies.Checked = False) Then


txtBrownies.Enabled = False
End If
End Sub

Private Sub txtBrownies_Click(sender As Object, e As EventArgs) Handles


txtBrownies.Click
txtBrownies.Text = ""
txtBrownies.Focus()
End Sub

Private Sub chkCinnamon_CheckedChanged(sender As Object, e As EventArgs)


Handles chkCinnamon.CheckedChanged
If (chkCinnamon.Checked = True) Then
txtCinnamon.Enabled = True
End If

If (chkCinnamon.Checked = False) Then


txtCinnamon.Enabled = False
End If
End Sub

Private Sub txtCinnamon_Click(sender As Object, e As EventArgs) Handles


txtCinnamon.Click
txtCinnamon.Text = ""
txtCinnamon.Focus()
End Sub

Private Sub chkCupcakes_CheckedChanged(sender As Object, e As EventArgs)


Handles chkCupcakes.CheckedChanged
If (chkCupcakes.Checked = True) Then
txtCupcakes.Enabled = True
End If

If (chkCupcakes.Checked = False) Then


txtCupcakes.Enabled = False
End If
End Sub

Private Sub txtCupcakes_Click(sender As Object, e As EventArgs) Handles


txtCupcakes.Click
txtCupcakes.Text = ""
txtCupcakes.Focus()
End Sub

Private Sub chkEnsaymada_CheckedChanged(sender As Object, e As EventArgs)


Handles chkEnsaymada.CheckedChanged
If (chkEnsaymada.Checked = True) Then
txtEnsaymada.Enabled = True
End If

If (chkEnsaymada.Checked = False) Then


txtEnsaymada.Enabled = False
End If
End Sub

Private Sub txtEnsaymada_Click(sender As Object, e As EventArgs) Handles


txtEnsaymada.Click
txtEnsaymada.Text = ""
txtEnsaymada.Focus()
End Sub

Private Sub chkMacarons_CheckedChanged(sender As Object, e As EventArgs)


Handles chkMacarons.CheckedChanged
If (chkMacarons.Checked = True) Then
txtMacarons.Enabled = True
End If

If (chkMacarons.Checked = False) Then


txtMacarons.Enabled = False
End If
End Sub

Private Sub txtMacarons_Click(sender As Object, e As EventArgs) Handles


txtMacarons.Click
txtMacarons.Text = ""
txtMacarons.Focus()
End Sub

Private Sub chkSpanishBread_CheckedChanged(sender As Object, e As


EventArgs) Handles chkSpanishBread.CheckedChanged
If (chkSpanishBread.Checked = True) Then
txtSpanishBread.Enabled = True
End If

If (chkSpanishBread.Checked = False) Then


txtSpanishBread.Enabled = False
End If
End Sub

Private Sub txtSpanishBread_Click(sender As Object, e As EventArgs)


Handles txtSpanishBread.Click
txtSpanishBread.Text = ""
txtSpanishBread.Focus()
End Sub

Private Sub chkCappuccino_CheckedChanged(sender As Object, e As


EventArgs) Handles chkCappuccino.CheckedChanged
If (chkCappuccino.Checked = True) Then
txtCappuccino.Enabled = True
End If

If (chkCappuccino.Checked = False) Then


txtCappuccino.Enabled = False
End If
End Sub

Private Sub txtCappuccino_Click(sender As Object, e As EventArgs) Handles


txtCappuccino.Click
txtCappuccino.Text = ""
txtCappuccino.Focus()
End Sub

Private Sub chkMachiatto_CheckedChanged(sender As Object, e As EventArgs)


Handles chkMachiatto.CheckedChanged
If (chkMachiatto.Checked = True) Then
txtMachiatto.Enabled = True
End If

If (chkMachiatto.Checked = False) Then


txtMachiatto.Enabled = False
End If
End Sub

Private Sub txtMachiatto_Click(sender As Object, e As EventArgs) Handles


txtMachiatto.Click
txtMachiatto.Text = ""
txtMachiatto.Focus()
End Sub

Private Sub chkLatte_CheckedChanged(sender As Object, e As EventArgs)


Handles chkLatte.CheckedChanged
If (chkLatte.Checked = True) Then
txtLatte.Enabled = True
End If

If (chkLatte.Checked = False) Then


txtLatte.Enabled = False
End If
End Sub

Private Sub txtLatte_Click(sender As Object, e As EventArgs) Handles


txtLatte.Click
txtLatte.Text = ""
txtLatte.Focus()
End Sub

Private Sub chkEspresso_CheckedChanged(sender As Object, e As EventArgs)


Handles chkEspresso.CheckedChanged
If (chkEspresso.Checked = True) Then
txtEspresso.Enabled = True
End If

If (chkEspresso.Checked = False) Then


txtEspresso.Enabled = False
End If
End Sub

Private Sub txtEspresso_Click(sender As Object, e As EventArgs) Handles


txtEspresso.Click
txtEspresso.Text = ""
txtEspresso.Focus()
End Sub

Private Sub chkHotChoco_CheckedChanged(sender As Object, e As EventArgs)


Handles chkHotChoco.CheckedChanged
If (chkHotChoco.Checked = True) Then
txtHotChoco.Enabled = True
End If

If (chkHotChoco.Checked = False) Then


txtHotChoco.Enabled = False
End If
End Sub

Private Sub txtHotChoco_Click(sender As Object, e As EventArgs) Handles


txtHotChoco.Click
txtHotChoco.Text = ""
txtHotChoco.Focus()
End Sub

Private Sub chkHotCoffee_CheckedChanged(sender As Object, e As EventArgs)


Handles chkHotCoffee.CheckedChanged
If (chkHotCoffee.Checked = True) Then
txtHotCoffee.Enabled = True
End If

If (chkHotCoffee.Checked = False) Then


txtHotCoffee.Enabled = False
End If
End Sub

Private Sub txtHotCoffee_Click(sender As Object, e As EventArgs) Handles


txtHotCoffee.Click
txtHotCoffee.Text = ""
txtHotCoffee.Focus()
End Sub

Private Sub chkCocaCola_CheckedChanged(sender As Object, e As EventArgs)


Handles chkCocaCola.CheckedChanged
If (chkCocaCola.Checked = True) Then
txtCocaCola.Enabled = True
End If

If (chkCocaCola.Checked = False) Then


txtCocaCola.Enabled = False
End If
End Sub

Private Sub txtCocaCola_Click(sender As Object, e As EventArgs) Handles


txtCocaCola.Click
txtCocaCola.Text = ""
txtCocaCola.Focus()
End Sub

Private Sub chkSprite_CheckedChanged(sender As Object, e As EventArgs)


Handles chkSprite.CheckedChanged
If (chkSprite.Checked = True) Then
txtSprite.Enabled = True
End If

If (chkSprite.Checked = False) Then


txtSprite.Enabled = False
End If
End Sub

Private Sub txtSprite_Click(sender As Object, e As EventArgs) Handles


txtSprite.Click
txtSprite.Text = ""
txtSprite.Focus()
End Sub

Private Sub chkRoyal_CheckedChanged(sender As Object, e As EventArgs)


Handles chkRoyal.CheckedChanged
If (chkRoyal.Checked = True) Then
txtRoyal.Enabled = True
End If

If (chkRoyal.Checked = False) Then


txtRoyal.Enabled = False
End If
End Sub

Private Sub txtRoyal_Click(sender As Object, e As EventArgs) Handles


txtRoyal.Click
txtRoyal.Text = ""
txtRoyal.Focus()
End Sub

Private Sub chkC2_CheckedChanged(sender As Object, e As EventArgs)


Handles chkC2.CheckedChanged
If (chkC2.Checked = True) Then
txtC2.Enabled = True
End If

If (chkC2.Checked = False) Then


txtC2.Enabled = False
End If
End Sub

Private Sub txtC2_Click(sender As Object, e As EventArgs) Handles


txtC2.Click
txtC2.Text = ""
txtC2.Focus()
End Sub

Private Sub chkIcedTea_CheckedChanged(sender As Object, e As EventArgs)


Handles chkIcedTea.CheckedChanged
If (chkIcedTea.Checked = True) Then
txtIcedTea.Enabled = True
End If

If (chkIcedTea.Checked = False) Then


txtIcedTea.Enabled = False
End If
End Sub

Private Sub txtIcedTea_Click(sender As Object, e As EventArgs) Handles


txtIcedTea.Click
txtIcedTea.Text = ""
txtIcedTea.Focus()
End Sub

Private Sub chkMtnDew_CheckedChanged(sender As Object, e As EventArgs)


Handles chkMtnDew.CheckedChanged
If (chkMtnDew.Checked = True) Then
txtMtnDew.Enabled = True
End If

If (chkMtnDew.Checked = False) Then


txtMtnDew.Enabled = False
End If
End Sub

Private Sub txtMtnDew_Click(sender As Object, e As EventArgs) Handles


txtMtnDew.Click
txtMtnDew.Text = ""
txtMtnDew.Focus()
End Sub

Private Sub btnCakes_Click(sender As Object, e As EventArgs) Handles


btnCakes.Click
CakePanel.Visible = True
BreadAndPastryPanel.Visible = False
DrinksPanel.Visible = False
CoffeePanel.Visible = False

End Sub

Private Sub btnBreadAndPastry_Click(sender As Object, e As EventArgs)


Handles btnBreadAndPastry.Click
CakePanel.Visible = False
BreadAndPastryPanel.Visible = True
DrinksPanel.Visible = False
CoffeePanel.Visible = False
End Sub

Private Sub btnDrinks_Click(sender As Object, e As EventArgs) Handles


btnDrinks.Click
CakePanel.Visible = False
BreadAndPastryPanel.Visible = False
DrinksPanel.Visible = True
CoffeePanel.Visible = False
End Sub

Private Sub btnCoffee_Click(sender As Object, e As EventArgs) Handles


btnCoffee.Click
CakePanel.Visible = False
BreadAndPastryPanel.Visible = False
DrinksPanel.Visible = False
CoffeePanel.Visible = True
End Sub
Private Sub btnReset_Click(sender As Object, e As EventArgs) Handles
btnReset.Click
txtBlackForest.Text = "0"
txtBreadRoll.Text = "0"
txtBreadStick.Text = "0"
txtBrownies.Text = "0"
txtC2.Text = "0"
txtCappuccino.Text = "0"
txtChocoMousse.Text = "0"
txtCinnamon.Text = "0"
txtCocaCola.Text = "0"
txtCupcakes.Text = "0"
txtEnsaymada.Text = "0"
txtEnsaymada.Text = "0"
txtEspresso.Text = "0"
txtHotChoco.Text = "0"
txtHotCoffee.Text = "0"
txtIcedTea.Text = "0"
txtLatte.Text = "0"
txtMacarons.Text = "0"
txtMachiatto.Text = "0"
txtMatcha.Text = "0"
txtMocha.Text = "0"
txtMtnDew.Text = "0"
txtOreo.Text = "0"
txtRedVelvet.Text = "0"
txtRoyal.Text = "0"
txtSpanishBread.Text = "0"
txtSprite.Text = "0"
txtStrawberry.Text = "0"
txtYema.Text = "0"

txtBlackForest.Enabled = False
txtBreadRoll.Enabled = False
txtBreadStick.Enabled = False
txtBrownies.Enabled = False
txtC2.Enabled = False
txtCappuccino.Enabled = False
txtChocoMousse.Enabled = False
txtCinnamon.Enabled = False
txtCocaCola.Enabled = False
txtCupcakes.Enabled = False
txtEnsaymada.Enabled = False
txtEspresso.Enabled = False
txtHotChoco.Enabled = False
txtHotCoffee.Enabled = False
txtIcedTea.Enabled = False
txtLatte.Enabled = False
txtMacarons.Enabled = False
txtMachiatto.Enabled = False
txtMatcha.Enabled = False
txtMocha.Enabled = False
txtMtnDew.Enabled = False
txtOreo.Enabled = False
txtRedVelvet.Enabled = False
txtRoyal.Enabled = False
txtSpanishBread.Enabled = False
txtSprite.Enabled = False
txtStrawberry.Enabled = False
txtYema.Enabled = False

chkBlackForest.Checked = False
chkBreadRoll.Checked = False
chkBreadStick.Checked = False
chkBrownies.Checked = False
chkC2.Checked = False
chkCappuccino.Checked = False
chkChocoMousse.Checked = False
chkCinnamon.Checked = False
chkCocaCola.Checked = False
chkCupcakes.Checked = False
chkEnsaymada.Checked = False
chkEspresso.Checked = False
chkHotChoco.Checked = False
chkHotCoffee.Checked = False
chkIcedTea.Checked = False
chkLatte.Checked = False
chkMacarons.Checked = False
chkMachiatto.Checked = False
chkMatcha.Checked = False
chkMocha.Checked = False
chkMtnDew.Checked = False
chkOreo.Checked = False
chkRedVelvet.Checked = False
chkRoyal.Checked = False
chkSpanishBread.Checked = False
chkSprite.Checked = False
chkStrawberry.Checked = False
chkYema.Checked = False

txtSubtotal.Text = ""
txtVat.Text = ""
txtTotal.Text = ""
txtCash.Text = ""
txtChange.Text = ""

ListBox1.Items.Clear()

txtName.Text = ""
txtContactNo.Text = ""

End Sub

Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles


Timer1.Tick
lblDateTime.Text = Date.Now.ToString("MMM dd, yyyy hh:mm:ss")
End Sub

Private Sub btnTotal_Click(sender As Object, e As EventArgs) Handles


btnTotal.Click
txtSubtotal.Text = Val(txtBlackForest.Text) * 599 +
Val(txtChocoMousse.Text) * 569 + Val(txtMatcha.Text) * 559 +
Val(txtMocha.Text) * 499 + Val(txtOreo.Text) * 599 + Val(txtRedVelvet.Text) *
559 + Val(txtStrawberry.Text) * 549 + Val(txtYema.Text) * 399 +
Val(txtBreadRoll.Text) * 5 + Val(txtBreadStick.Text) + Val(txtC2.Text) * 25 +
Val(txtCocaCola.Text) * 20 + Val(txtIcedTea.Text) * 30 + Val(txtMtnDew.Text)
* 25 + Val(txtRoyal.Text) * 20 + Val(txtSprite.Text) * 20 +
Val(txtCappuccino.Text) * 130 + Val(txtEspresso.Text) * 110 +
Val(txtHotChoco.Text) * Val(txtHotCoffee.Text) * 100 + Val(txtLatte.Text) *
125 + Val(txtMachiatto.Text) * 145
txtVat.Text = Val(txtSubtotal.Text) * 0.12
txtTotal.Text = Val(txtSubtotal.Text) + Val(txtVat.Text)

End Sub

Private Sub txtNumbersOnly(sender As Object, e As KeyPressEventArgs)


Handles txtYema.KeyPress, txtStrawberry.KeyPress, txtRedVelvet.KeyPress,
txtOreo.KeyPress, txtMocha.KeyPress, txtMatcha.KeyPress,
txtChocoMousse.KeyPress, txtBlackForest.KeyPress, txtSpanishBread.KeyPress,
txtMacarons.KeyPress, txtEnsaymada.KeyPress, txtCupcakes.KeyPress,
txtCinnamon.KeyPress, txtBrownies.KeyPress, txtBreadStick.KeyPress,
txtBreadRoll.KeyPress, txtSprite.KeyPress, txtRoyal.KeyPress,
txtMtnDew.KeyPress, txtIcedTea.KeyPress, txtCocaCola.KeyPress,
txtC2.KeyPress, txtMachiatto.KeyPress, txtLatte.KeyPress,
txtHotCoffee.KeyPress, txtHotChoco.KeyPress, txtEspresso.KeyPress,
txtCappuccino.KeyPress
If Char.IsDigit(e.KeyChar) = False And Char.IsControl(e.KeyChar) =
False Then
e.Handled = True
MsgBox("Please enter valid number", MsgBoxStyle.Information)
End If
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles


Button1.Click
AdminPanel.Show()
Me.Hide()

End Sub

Private Sub btnReceipt_Click(sender As Object, e As EventArgs) Handles


btnReceipt.Click

Receipt.lborder.Text = ListBox1.Text
Receipt.lbldatetime.Text = lblDateTime.Text
Receipt.lblname.Text = txtName.Text
Receipt.lblcontact.Text = txtContactNo.Text
Receipt.lblsubtotal.Text = txtSubtotal.Text
Receipt.lblvat.Text = txtVat.Text
Receipt.lbltotal.Text = txtTotal.Text
Receipt.lblcash.Text = txtCash.Text
Receipt.lblchange.Text = txtChange.Text

' Receipt.lborder.Items.Add(Me.ListBox1.Items)
Receipt.Show()
End Sub

Private Sub PictureBox30_Click(sender As Object, e As EventArgs) Handles


PictureBox30.Click
Amount = Val(txtBlackForest.Text) * 599
ListBox1.Items.Add("Black Forest Cake" & vbTab + vbTab &
txtBlackForest.Text & vbTab & 599 & vbTab & Amount)
Receipt.lborder.Items.Add("Black Forest Cake" & vbTab + vbTab &
txtBlackForest.Text & vbTab & 599 & vbTab & Amount)

End Sub

Private Sub PictureBox33_Click(sender As Object, e As EventArgs) Handles


PictureBox33.Click
Amount = Val(txtMocha.Text) * 499
ListBox1.Items.Add("Mocha Cake" & vbTab + vbTab & txtMocha.Text &
vbTab & 499 & vbTab & Amount)
Receipt.lborder.Items.Add("Mocha Cake" & vbTab + vbTab &
txtMocha.Text & vbTab & 499 & vbTab & Amount)

End Sub

Private Sub PictureBox31_Click(sender As Object, e As EventArgs) Handles


PictureBox31.Click
Amount = Val(txtChocoMousse.Text) * 569
ListBox1.Items.Add("Choco Mousse Cake" & vbTab & txtChocoMousse.Text
& vbTab & 569 & vbTab & Amount)
Receipt.lborder.Items.Add("Choco Mousse Cake" & vbTab &
txtChocoMousse.Text & vbTab & 569 & vbTab & Amount)

End Sub

Private Sub PictureBox32_Click(sender As Object, e As EventArgs) Handles


PictureBox32.Click
Amount = Val(txtMatcha.Text) * 559
ListBox1.Items.Add("Matcha Cake" & vbTab + vbTab & txtMatcha.Text &
vbTab & 559 & vbTab & Amount)
Receipt.lborder.Items.Add("Matcha Cake" & vbTab + vbTab &
txtMatcha.Text & vbTab & 559 & vbTab & Amount)

End Sub

Private Sub PictureBox34_Click(sender As Object, e As EventArgs) Handles


PictureBox34.Click
Amount = Val(txtOreo.Text) * 599
ListBox1.Items.Add("Oreo Cake" & vbTab + vbTab & txtOreo.Text & vbTab
& 599 & vbTab & Amount)
Receipt.lborder.Items.Add("Oreo Cake" & vbTab + vbTab & txtOreo.Text
& vbTab & 599 & vbTab & Amount)

End Sub

Private Sub PictureBox35_Click(sender As Object, e As EventArgs) Handles


PictureBox35.Click
Amount = Val(txtRedVelvet.Text) * 559
ListBox1.Items.Add("Red Velvet Cake" & vbTab + vbTab &
txtRedVelvet.Text & vbTab & 559 & vbTab & Amount)
Receipt.lborder.Items.Add("Red Velvet Cake" & vbTab + vbTab &
txtRedVelvet.Text & vbTab & 559 & vbTab & Amount)

End Sub

Private Sub PictureBox36_Click(sender As Object, e As EventArgs) Handles


PictureBox36.Click
Amount = Val(txtStrawberry.Text) * 549
ListBox1.Items.Add("Strawberry Cake" & vbTab + vbTab &
txtStrawberry.Text & vbTab & 549 & vbTab & Amount)
Receipt.lborder.Items.Add("Strawberry Cake" & vbTab + vbTab &
txtStrawberry.Text & vbTab & 549 & vbTab & Amount)

End Sub

Private Sub PictureBox37_Click(sender As Object, e As EventArgs) Handles


PictureBox37.Click
Amount = Val(txtYema.Text) * 399
ListBox1.Items.Add("Yema Cake" & vbTab + vbTab & txtYema.Text & vbTab
& 399 & vbTab & Amount)
Receipt.lborder.Items.Add("Yema Cake" & vbTab + vbTab & txtYema.Text
& vbTab & 399 & vbTab & Amount)

End Sub

Private Sub PictureBox38_Click(sender As Object, e As EventArgs) Handles


PictureBox38.Click
Amount = Val(txtBreadRoll.Text) * 5
ListBox1.Items.Add("Bread Roll" & vbTab + vbTab & txtBreadRoll.Text &
vbTab & 5 & vbTab & Amount)
Receipt.lborder.Items.Add("Bread Roll" & vbTab + vbTab &
txtBreadRoll.Text & vbTab & 5 & vbTab & Amount)

End Sub

Private Sub PictureBox39_Click(sender As Object, e As EventArgs) Handles


PictureBox39.Click
Amount = Val(txtBreadStick.Text) * 10
ListBox1.Items.Add("Bread Stick" & vbTab + vbTab & txtBreadStick.Text
& vbTab & 10 & vbTab & Amount)
Receipt.lborder.Items.Add("Bread Stick" & vbTab + vbTab &
txtBreadStick.Text & vbTab & 10 & vbTab & Amount)

End Sub

Private Sub PictureBox40_Click(sender As Object, e As EventArgs) Handles


PictureBox40.Click
Amount = Val(txtBrownies.Text) * 15
ListBox1.Items.Add("Brownies" & vbTab + vbTab + vbTab &
txtBrownies.Text & vbTab & 15 & vbTab & Amount)
Receipt.lborder.Items.Add("Brownies" & vbTab + vbTab + vbTab &
txtBrownies.Text & vbTab & 15 & vbTab & Amount)

End Sub
Private Sub PictureBox41_Click(sender As Object, e As EventArgs) Handles
PictureBox41.Click
Amount = Val(txtCinnamon.Text) * 20
ListBox1.Items.Add("Cinnamon Roll" & vbTab + vbTab & txtCinnamon.Text
& vbTab & 20 & vbTab & Amount)
Receipt.lborder.Items.Add("Cinnamon Roll" & vbTab + vbTab &
txtCinnamon.Text & vbTab & 20 & vbTab & Amount)

End Sub

Private Sub PictureBox42_Click(sender As Object, e As EventArgs) Handles


PictureBox42.Click
Amount = Val(txtCupcakes.Text) * 30
ListBox1.Items.Add("Cupcakes" & vbTab + vbTab & txtCupcakes.Text &
vbTab & 30 & vbTab & Amount)
Receipt.lborder.Items.Add("Cupcakes" & vbTab + vbTab &
txtCupcakes.Text & vbTab & 30 & vbTab & Amount)

End Sub

Private Sub PictureBox43_Click(sender As Object, e As EventArgs) Handles


PictureBox43.Click
Amount = Val(txtEnsaymada.Text) * 25
ListBox1.Items.Add("Ensaymada" & vbTab + vbTab & txtEnsaymada.Text &
vbTab & 25 & vbTab & Amount)
Receipt.lborder.Items.Add("Ensaymada" & vbTab + vbTab &
txtEnsaymada.Text & vbTab & 25 & vbTab & Amount)

End Sub

Private Sub PictureBox44_Click(sender As Object, e As EventArgs) Handles


PictureBox44.Click
Amount = Val(txtMacarons.Text) * 15
ListBox1.Items.Add("Macaroons" & vbTab + vbTab & txtMacarons.Text &
vbTab & 15 & vbTab & Amount)
Receipt.lborder.Items.Add("Macaroons" & vbTab + vbTab &
txtMacarons.Text & vbTab & 15 & vbTab & Amount)

End Sub

Private Sub PictureBox45_Click(sender As Object, e As EventArgs) Handles


PictureBox45.Click
Amount = Val(txtSpanishBread.Text) * 5
ListBox1.Items.Add("Spanish Bread" & vbTab + vbTab &
txtSpanishBread.Text & vbTab & 5 & vbTab & Amount)
Receipt.lborder.Items.Add("Spanish Bread" & vbTab + vbTab &
txtSpanishBread.Text & vbTab & 5 & vbTab & Amount)

End Sub

Private Sub PictureBox53_Click(sender As Object, e As EventArgs) Handles


PictureBox53.Click
Amount = Val(txtCocaCola.Text) * 20
ListBox1.Items.Add("Coca Cola" & vbTab + vbTab & txtCocaCola.Text &
vbTab & 20 & vbTab & Amount)
Receipt.lborder.Items.Add("Coca Cola" & vbTab + vbTab &
txtCocaCola.Text & vbTab & 20 & vbTab & Amount)
End Sub

Private Sub PictureBox52_Click(sender As Object, e As EventArgs) Handles


PictureBox52.Click
Amount = Val(txtSprite.Text) * 20
ListBox1.Items.Add("Sprite" & vbTab + vbTab + vbTab & txtSprite.Text
& vbTab & 20 & vbTab & Amount)
Receipt.lborder.Items.Add("Sprite" & vbTab + vbTab + vbTab &
txtSprite.Text & vbTab & 20 & vbTab & Amount)

End Sub

Private Sub PictureBox51_Click(sender As Object, e As EventArgs) Handles


PictureBox51.Click
Amount = Val(txtRoyal.Text) * 20
ListBox1.Items.Add("Royal" & vbTab + vbTab + vbTab & txtRoyal.Text &
vbTab & 20 & vbTab & Amount)
Receipt.lborder.Items.Add("Royal" & vbTab + vbTab + vbTab &
txtRoyal.Text & vbTab & 20 & vbTab & Amount)

End Sub

Private Sub PictureBox49_Click(sender As Object, e As EventArgs) Handles


PictureBox49.Click
Amount = Val(txtC2.Text) * 25
ListBox1.Items.Add("C2" & vbTab + vbTab + vbTab & txtC2.Text & vbTab
& 25 & vbTab & Amount)
Receipt.lborder.Items.Add("C2" & vbTab + vbTab + vbTab & txtC2.Text &
vbTab & 25 & vbTab & Amount)

End Sub

Private Sub PictureBox48_Click(sender As Object, e As EventArgs) Handles


PictureBox48.Click
Amount = Val(txtIcedTea.Text) * 30
ListBox1.Items.Add("Iced Tea" & vbTab + vbTab + vbTab &
txtIcedTea.Text & vbTab & 30 & vbTab & Amount)
Receipt.lborder.Items.Add("Iced Tea" & vbTab + vbTab + vbTab &
txtIcedTea.Text & vbTab & 30 & vbTab & Amount)

End Sub

Private Sub PictureBox47_Click(sender As Object, e As EventArgs) Handles


PictureBox47.Click
Amount = Val(txtMtnDew.Text) * 25
ListBox1.Items.Add("Mountain Dew" & vbTab + vbTab & txtMtnDew.Text &
vbTab & 25 & vbTab & Amount)
Receipt.lborder.Items.Add("Mountain Dew" & vbTab + vbTab &
txtMtnDew.Text & vbTab & 25 & vbTab & Amount)

End Sub

Private Sub PictureBox54_Click(sender As Object, e As EventArgs) Handles


PictureBox54.Click
Amount = Val(txtCappuccino.Text) * 130
ListBox1.Items.Add("Cappuccino" & vbTab + vbTab & txtCappuccino.Text
& vbTab & 130 & vbTab & Amount)
Receipt.lborder.Items.Add("Cappuccino" & vbTab + vbTab &
txtCappuccino.Text & vbTab & 130 & vbTab & Amount)

End Sub

Private Sub PictureBox55_Click(sender As Object, e As EventArgs) Handles


PictureBox55.Click
Amount = Val(txtMachiatto.Text) * 145
ListBox1.Items.Add("Caramel Machiatto" & vbTab + vbTab &
txtMachiatto.Text & vbTab & 145 & vbTab & Amount)
Receipt.lborder.Items.Add("Caramel Machiatto" & vbTab + vbTab &
txtMachiatto.Text & vbTab & 145 & vbTab & Amount)

End Sub

Private Sub PictureBox56_Click(sender As Object, e As EventArgs) Handles


PictureBox56.Click
Amount = Val(txtLatte.Text) * 125
ListBox1.Items.Add("Coffee Latte" & vbTab + vbTab & txtLatte.Text &
vbTab & 125 & vbTab & Amount)
Receipt.lborder.Items.Add("Coffee Latte" & vbTab + vbTab &
txtLatte.Text & vbTab & 125 & vbTab & Amount)

End Sub

Private Sub PictureBox57_Click(sender As Object, e As EventArgs) Handles


PictureBox57.Click
Amount = Val(txtEspresso.Text) * 110
ListBox1.Items.Add("Espresso" & vbTab + vbTab + vbTab &
txtEspresso.Text & vbTab & 110 & vbTab & Amount)
Receipt.lborder.Items.Add("Espresso" & vbTab + vbTab + vbTab &
txtEspresso.Text & vbTab & 110 & vbTab & Amount)

End Sub

Private Sub PictureBox58_Click(sender As Object, e As EventArgs) Handles


PictureBox58.Click
Amount = Val(txtHotChoco.Text) * 125
ListBox1.Items.Add("Hot Chocolate" & vbTab + vbTab & txtHotChoco.Text
& vbTab & 125 & vbTab & Amount)
Receipt.lborder.Items.Add("Hot Chocolate" & vbTab + vbTab &
txtHotChoco.Text & vbTab & 125 & vbTab & Amount)

End Sub

Private Sub PictureBox59_Click(sender As Object, e As EventArgs) Handles


PictureBox59.Click
Amount = Val(txtHotCoffee.Text) * 100
ListBox1.Items.Add("Hot Coffee" & vbTab + vbTab & txtHotCoffee.Text &
vbTab & 100 & vbTab & Amount)
Receipt.lborder.Items.Add("Hot Coffee" & vbTab + vbTab &
txtHotCoffee.Text & vbTab & 100 & vbTab & Amount)

End Sub
Private Sub ListBox1_SelectedIndexChanged(sender As Object, e As
EventArgs) Handles ListBox1.SelectedIndexChanged

End Sub

Private Sub txtCash_TextChanged(sender As Object, e As EventArgs)


If txtCash.Text = "" Then
a = MsgBox("Enter the Amount", vbInformation, "NOTE!!!!")
Else
txtChange.Text = txtCash.Text - txtTotal.Text
If txtChange.Text < 0 Then
txtChange.Text = 0

End If
End If
End Sub

Private Sub txtCash_TextChanged_1(sender As Object, e As EventArgs)


Handles txtCash.TextChanged
If txtCash.Text = "" Then
a = MsgBox("Enter the Amount", vbInformation, "NOTE!!!!")
Else

txtChange.Text = txtCash.Text - txtTotal.Text


If txtChange.Text < 0 Then
txtChange.Text = 0
End If
End If

End Sub

Private Sub Panel3_Paint(sender As Object, e As PaintEventArgs) Handles


Panel3.Paint

End Sub

Private Sub PictureBox60_Click(sender As Object, e As EventArgs)

End Sub
End Class
ADMIN FORM

Public Class AdminPanel


Private Sub AdminPanel_Load(sender As Object, e As EventArgs) Handles
MyBase.Load
Timer1.Enabled = True

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles


Button1.Click
EmployeePanel.Show()
Me.Hide()
End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles


Button3.Click
AddEmployee.Show()
Me.Hide()

End Sub

Private Sub Button5_Click(sender As Object, e As EventArgs) Handles


Button5.Click
TransactionRecord.Show()
Me.Hide()

End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles


Button4.Click
If MessageBox.Show("Do you really want to logout?", "Error",
MessageBoxButtons.YesNo, MessageBoxIcon.Information) =
Windows.Forms.DialogResult.Yes Then
LoginForm.Show()
Me.Close()
End If
End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs)


Panel3.Visible = False
Panel4.Visible = True

End Sub

Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles


Timer1.Tick
Label20.Text = Date.Now.ToString("MMM dd, yyyy hh:mm:ss")
End Sub

Private Sub PictureBox2_Click(sender As Object, e As EventArgs)


If MessageBox.Show("Do you really want to logout?", "Error",
MessageBoxButtons.YesNo, MessageBoxIcon.Information) =
Windows.Forms.DialogResult.Yes Then
LoginForm.Show()
Me.Close()
End If
End Sub
End Class
Public Class AddEmployee
Public Property Table As Object
Public Property AddNewEmployeeInfoDataSet As Object

Private Sub AddEmployee_Load(sender As Object, e As EventArgs) Handles


MyBase.Load
'TODO: This line of code loads data into the
'BakeshopOrderingSystemDatabaseDataSet.AddNewEmployee' table. You can move,
or remove it, as needed.

Me.AddNewEmployeeTableAdapter.Fill(Me.BakeshopOrderingSystemDatabaseDataSet.A
ddNewEmployee)

Panel1.BackColor = Color.FromArgb(45, 201, 3, 255)

End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles


Button4.Click
AdminPanel.Show()
Me.Hide()

End Sub

Private Sub Button5_Click(sender As Object, e As EventArgs) Handles


Button5.Click
AddNewEmployeeBindingSource.AddNew()

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles


Button1.Click
On Error GoTo SaveErr
AddNewEmployeeBindingSource.EndEdit()

AddNewEmployeeTableAdapter.Update(BakeshopOrderingSystemDatabaseDataSet.AddNe
wEmployee)
MessageBox.Show("Data Saved")
SaveErr:
Exit Sub
End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles


Button3.Click

TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
TextBox5.Clear()
TextBox6.Clear()
TextBox8.Clear()
TextBox9.Clear()
TextBox10.Clear()
TextBox11.Clear()
TextBox12.Clear()
End Sub

Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs)


Handles TextBox2.TextChanged

End Sub
End Class
Public Class TransactionRecord
Private Sub SalesRecord_Load(sender As Object, e As EventArgs) Handles
MyBase.Load
'TODO: This line of code loads data into the
'BakeshopOrderingSystemDatabaseDataSet1.TransactionRecord' table. You can
move, or remove it, as needed.

Me.TransactionRecordTableAdapter.Fill(Me.BakeshopOrderingSystemDatabaseDataSe
t1.TransactionRecord)

End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles


Button3.Click
AdminPanel.Show()
Me.Hide()

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles


Button1.Click

On Error GoTo SaveErr


TransactionRecordBindingSource.EndEdit()

TransactionRecordTableAdapter.Update(BakeshopOrderingSystemDatabaseDataSet1.T
ransactionRecord)
MessageBox.Show("Data Saved")
SaveErr:
Exit Sub
End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles


Button2.Click
TransactionRecordBindingSource.AddNew()
End Sub

Private Sub DataGridView1_CellContentClick(sender As Object, e As


DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick

End Sub
End Class

Das könnte Ihnen auch gefallen