C211 I211 Problem Solving and Programming II

C211 I211 Lab 8

Due Date: Monday, October 30, 2023.

Ex. 1. Getting Started with GUIs in Java

In this lab, we will implement a project that contains a GUI. We will use the JavaFX package that is already integrated in NetBeans.

a. Scene Builder

For this homework, we need the NetBeans IDE. If you don't have Apache NetBeans installed on your computer, see Lab 1 for installation details.

Download the Scene Builder application from
https://gluonhq.com/products/scene-builder/

After installing the application, open NetBeans. Go to the Tools menu, then Options. Click on the Java tab, then on JavaFX. Next to the Scene Builder Home, click on Browse, and then choose the folder where the Scene Builder application was installed. Typically this is C:\Program Files\SceneBuilder\. Also click the option to save all the opened files before launching Scene Builder.

Download the following zip file:
https://docs.oracle.com/javase/tutorial/uiswing/examples/zipfiles/learn-CelsiusConverterProject.zip.
Save it to your class folder or some other folder that you can easily remember, and then extract the folder stored inside it and place it in the same location.

Follow the steps described at https://docs.oracle.com/javase/tutorial/uiswing/learn/settingup.html to setup a project using this resource. There are some small differences with the instructions, as follows:

b. Screen Shots.   Once you are done and the application is running properly, take a screen shot of the IDE window showing the Design area, and of the running application window (they can be a single screen shot). You will need to submit this with the homework.

Lab Submission

Upload the screen shot and the CelsiusConverterGUI.java file to Canvas in Assignments - Lab 8.