Question: using java and mysql im making a pizza ordering system... i can create an account and store it in my database but i want btnLogin.setOnActione->

using java and mysql im making a pizza ordering system... i can create an account and store it in my database but i want "btnLogin.setOnActione-> buttonClicked(e));" to be able to switch to the next scene and preform login verification from what i stored into my database. i can switch scene but im not sure how to verify my login. using java and mysql im making a pizza ordering system... i cancreate an account and store it in my database but i want"btnLogin.setOnActione-> buttonClicked(e));" to be able to switch to the next scene and

btnCreateAcc.setOnAction(e-> ButtonClicked(e)); btnLogin.setonAction(e- ButtonClicked (e)); btClear.setOnAction(e- ButtonClicked (e)); submit.setOnAction(e-> ButtonClicked(e)); 01 02 03 04 05 06 207 208 09 210 btView.setOnAction(e - view)); btInsert.setOnAction(e -> insert)); btUpdate.setOnAction(e -> update()); orderit.setOnAction(e -> order(); price); Cine clearit.setOnAction(e -> order.setText(""); price.setText("0.00") 13 14 15 16 217 218 19 20 21 pane.getChildren).addAll(size_pane, topping_pane, order_pane,price_pane, orderit, clearit, submit); Text text = new Text("Login"); text.setFont (Font.font("Courier New", FontWeight.BOLD, 28)); hb.getChildren().add (text); 23 224 25 26 scene! scene2 scene3 new new new Scene(panel,350, 200); scene(pane2, 500, 300); scene(pane, 600, 400); 27 = 228 29 30 31 32 scene scene = new Scene(bp); primaryStage.setScene (scene1); primaryStage.show(); 35 36 Stage stage = new Stage(); stage.setTitle(("Create Account")); 38 39 40 41 42 43 private void price()f // TODO Auto-generated method stub String result- size.getValue); 45 double cost = 0; int count = 0; if(result.contains ("Small")) 48 49 250 cost cost + 3.00; 252 253 else if(result.contains("Medium")) cost cost + 5.00; 255

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!