The following JavaFX code has what output?
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.RadioButton;
import javafx.scene.layout.HBox;
import javafx.stage.Stage;
public class Q5 extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
primaryStage.setTitle("Q5");
RadioButton radioButton1 = new RadioButton("Left");
HBox hbox = new HBox(radioButton1);
Scene scene = new Scene(hbox, 200, 100);
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
Application.launch(args);
}
}
Question 6
1 pts
A(n) is an object that supports drawing shapes on a canvas
O graphiccontext
O icon
O pane
O button