0% found this document useful (0 votes)
24 views3 pages

Java POS System for Restaurant Orders

The document is a Java program that creates a Point of Sale (POS) interface using Swing components. It includes buttons for various food items, drinks, desserts, and options for dine-in or take-out, all organized within a JFrame. The interface is designed with icons for each button and is set to be non-resizable with a specific layout and size.

Uploaded by

nadinegeronimo22
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views3 pages

Java POS System for Restaurant Orders

The document is a Java program that creates a Point of Sale (POS) interface using Swing components. It includes buttons for various food items, drinks, desserts, and options for dine-in or take-out, all organized within a JFrame. The interface is designed with icons for each button and is set to be non-resizable with a specific layout and size.

Uploaded by

nadinegeronimo22
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

package nadine;

import [Link];
import [Link];
import [Link];
import [Link];

public class POS {

POS(){
JFrame frame = new JFrame ("POS");
ImageIcon frameicon = new ImageIcon ("[Link]");
JLabel label= new JLabel("ORDERS");
[Link](560,10,50,10);

//main dish
ImageIcon friesicon = new ImageIcon ("fried-potatoes (1).png");
ImageIcon burgericon = new ImageIcon ("[Link]");
ImageIcon Chixicon = new ImageIcon ("fried-chicken (1).png");
ImageIcon Nugicon = new ImageIcon ("[Link]");
ImageIcon tempuraicon = new ImageIcon ("[Link]");
JButton fries= new JButton("FRIES");
JButton burg= new JButton("BURGER");
JButton chix= new JButton("CHICKEN");
JButton nug= new JButton("NUGGETS");
JButton tem= new JButton("TEMPURA");

//Drinks
ImageIcon coffeicon = new ImageIcon ("[Link]");
ImageIcon mochaicon = new ImageIcon ("[Link]");
ImageIcon cokeicon = new ImageIcon ("[Link]");
ImageIcon grapeicon = new ImageIcon ("[Link]");
ImageIcon orangeicon = new ImageIcon ("[Link]");
JButton brew= new JButton("COFFEE");
JButton brewchoc= new JButton("MOCHA");
JButton coke= new JButton("COKE");
JButton grape= new JButton("GRAPE");
JButton orange= new JButton("ORANGE");

//dessert
ImageIcon cakeicon = new ImageIcon ("[Link]");
ImageIcon donuticon = new ImageIcon ("[Link]");
ImageIcon icecreamicon = new ImageIcon ("[Link]");
JButton cake= new JButton("CAKE");
JButton donut= new JButton("DONUT");
JButton ice= new JButton("CONE");

//dine/take-out
ImageIcon dineicon = new ImageIcon ("dinner-table (1).png");
ImageIcon outicon = new ImageIcon ("food (1).png");
JButton dine= new JButton("DINE-IN");
JButton out= new JButton("TAKE-OUT");

//reset/pay
ImageIcon reseticon = new ImageIcon ("[Link]");
ImageIcon payicon = new ImageIcon ("[Link]");
JButton reset= new JButton("RESET");
JButton pay= new JButton("PAY");
//main dish
[Link](10,10,170,100);
[Link](friesicon);

[Link](190,10,170,100);
[Link](burgericon);

[Link](370,10,170,100);
[Link](Chixicon);

[Link](10,120,170,100);
[Link](Nugicon);

[Link](190,120,170,100);
[Link](tempuraicon);

//DRINKS
[Link](370,120,170,100);
[Link](coffeicon);

[Link](10,230,170,100);
[Link](mochaicon);

[Link](190,230,170,100);
[Link](cokeicon);

[Link](370,230,170,100);
[Link](grapeicon);

[Link](10,340,170,100);
[Link](orangeicon);

//dessert
[Link](190,340,170,100);
[Link](cakeicon);

[Link](370,340,170,100);
[Link](donuticon);

[Link](10,450,170,100);
[Link](icecreamicon);

//dine/take-out
[Link](190,450,170,100);
[Link](dineicon);

[Link](370,450,170,100);
[Link](outicon);

//reset/pay
[Link](980,450,170,100);
[Link](reseticon);

[Link](1170,450,170,100);
[Link](payicon);

[Link]([Link]());
[Link](1500, 700);
[Link](false);
[Link](true);
[Link](null);
[Link](JFrame.EXIT_ON_CLOSE);
[Link](label);

//main dish
[Link](fries);
[Link](burg);
[Link](chix);
[Link](nug);
[Link](tem);

//drinks
[Link](brew);
[Link](brewchoc);
[Link](coke);
[Link](grape);
[Link](orange);

//drinks
[Link](cake);
[Link](donut);
[Link](ice);

//dine/take-out
[Link](dine);
[Link](out);

//dine/take-out
[Link](reset);
[Link](pay);

You might also like