- Task Create A Project Called Lab5 Firstname Lastname Imagegallery Firstname Lastname Or Remember To Include Comments S 1 (175.18 KiB) Viewed 33 times
Task: Create a project called Lab5_FirstName_LastName. ImageGallery_FirstName_LastName or Remember to include comments s
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Task: Create a project called Lab5_FirstName_LastName. ImageGallery_FirstName_LastName or Remember to include comments s
Task: Create a project called Lab5_FirstName_LastName. ImageGallery_FirstName_LastName or Remember to include comments summarizing the program. 1. Make sure you have imported all of the classes necessary for this application. This program will require Application, Stage, Scene, GridPane, Image, ImageView, and may require Pos and Insets depending on how you approach customizing the interface. 2. Prepare the program to be executed as a JavaFX application. This will include a call to the launch method within the main method and the initial set up of the start method. 3. Declare the Images and the ImageViews in the class-level scope of this application. The Images can either be from a webpage or a local file. If you use local files, make sure these are included in your submission. 4. Implement the start method. This program will display six images of your choosing in a GridPane layout in any arrangement of your choosing. For example, you can have a 2x3 or 3x2 arrangement, or you could try a more elaborate layout. 5. Make sure you include some spacing and padding in your application. You may also adjust the alignment of the Grid Pane (or the individual images) to achieve this. 6. Set up the scene nd stage application. Make sure the dimensions of the scene allow the images to be fully visible. Set the title for the application to anything of your choosing.