Please Answer Asap Post Code Comment Need Add Calculate Button Exit Button Using Event Ha Q37112560

Please answer me ASAP.

I will post my code in the comment on what I have. I just needto add a calculate button and exit button using event handler.

import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.control.RadioButton;
import javafx.scene.control.CheckBox;
import javafx.scene.control.ToggleGroup;
import javafx.stage.Stage;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;

public class OrderCalculator extends Application
{
   @Override
   public void start(Stage primaryStage)
   {
       BorderPane pane = newBorderPane();
       pane.setTop(getHBoxTop());
      pane.setBottom(getHBoxcenter());
       pane.setLeft(getVBoxLeft());
      pane.setCenter(getVBoxcenter());
       pane.setRight(getVBoxRight());

       Scene scene = newScene(pane);
       primaryStage.setTitle(“OrderCalculator”);
       primaryStage.setScene(scene);
       primaryStage.show();
   }
   private VBox getVBoxLeft()
   {
       VBox paneForRadioButtons = newVBox(10);
       paneForRadioButtons.setPadding(newInsets(18, 5, 18, 5));
       RadioButton rbWhite = newRadioButton(“White”);
       RadioButton rbWhole =

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.