Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is the MediawebView.jar This is what I got so far: primaryStage.setTitle(Search Bar); BorderPane root = new BorderPane(); GridPane grid = new GridPane(); grid.setPadding(new Insets(10,

image text in transcribed

This is the MediawebView.jarimage text in transcribed

This is what I got so far:

primaryStage.setTitle("Search Bar");

BorderPane root = new BorderPane();

GridPane grid = new GridPane();

grid.setPadding(new Insets(10, 10, 10, 10));

grid.setVgap(10);

grid.setHgap(10);

root.setTop(grid);

// Creating a text field with defining the URL

final TextField url = new TextField();

url.setPromptText("Type a full URL (e.g. https://youtube.com/)");

url.setPrefColumnCount(10);

url.getText();

GridPane.setConstraints(url, 0, 0);

// Defining the video

final TextField video = new TextField();

video.setPromptText("Type a Video File (e.g. MOV)");

GridPane.setConstraints(video, 0, 1);

// Defining the sound

final TextField sound = new TextField();

sound.setPrefColumnCount(15);

sound.setPromptText("Type a Sound File (e.g. mp3)");

GridPane.setConstraints(sound, 0, 2);

grid.getChildren().addAll(url, video, sound);

// Defining the URL button

Button urlButton = new Button("...");

GridPane.setConstraints(urlButton, 1, 0);

grid.getChildren().add(urlButton);

// Defining the Video Button

Button videoButton = new Button("...");

GridPane.setConstraints(videoButton, 1, 1);

grid.getChildren().add(videoButton);

// Defining the Sound Button

Button soundButton = new Button("...");

GridPane.setConstraints(soundButton, 1, 2);

grid.getChildren().add(soundButton);

VBox vb = new VBox();

root.setCenter(vb);

Problem 1 (50 points): Simple JavaFX app 1. Create a JavaFX project in Eclipse with a name like ex3 or exercise3. 2. Use the default package "application If you want, you may refactor it. 3. Use the default JavaFX cass (a source file) named Main,java. Again, you may change the name of the source file (class file, eventually) by refactoring. 4. Download the runnable JAR file named MediaWebView.jar to your computer and double click to run it. Note that i have also posted resource files. 5. Create a similar app by writing code in the Main.java (or your preferred) file. 6. Export your project to a JAR file (nota runnable JAR file) 7. Upload the JAR file on Canvas. Hints: Please review the following 1. Skinning with SS (here or esewhere on the web). To insert a background image, you should do it with a "root of the scene. 2. TextField (here or elsewhere 3. a node getChildren).clear of Observablelist 4. HBox and VBox (here or elsewhere 5. WebView and WebEngine (see the class example or elsewhere) 6. Media and MediaView (see the class eample or elsewhere) here

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

How to reverse a Armstrong number by using double linked list ?

Answered: 1 week ago

Question

2. Define nominal exchange rate and real exchange rate.

Answered: 1 week ago