-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBobBurger.java
More file actions
34 lines (29 loc) · 928 Bytes
/
BobBurger.java
File metadata and controls
34 lines (29 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Name: Colby Cabrera
* Overview: Creates a GUI that the user clicks to get the bill for their order
* Input: User uses the mouse the click the buttons in the GUI
* Output: GUI with 7 buttons and label with the total cost
* Variables: panel, scene
*/
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.geometry.Pos;
public class BobBurger extends Application {
//creates a GUI for a burger cash register
public void start(Stage primaryStage)
{
BobBurgerPanel panel = new BobBurgerPanel();
Scene scene = new Scene(panel, 700, 500);
panel.setAlignment(Pos.CENTER);
panel.setStyle("-fx-background-color: lightcyan");
primaryStage.setTitle("Burger Register");
primaryStage.setScene(scene);
primaryStage.show();
}
//launches the GUI
public static void main(String[] args)
{
Application.launch(args);
}
}