Create a JavaFX GUI with radio buttons and check boxes

提供方
Coursera Project Network
在此指導項目中,您將:

Use JavaFX framework to create a simple GUI application where a user selects radio buttons and check boxes and clicks a button to output details.

Clock2 hours
Intermediate中級
Cloud無需下載
Video分屏視頻
Comment Dots英語(English)
Laptop僅限桌面

In this project, you will create a simple GUI application in jGrasp using the JavaFX framework. The components of the interface will be arranged in a Grid Pane container. A template program is provided to which you will create and add three radio buttons for three types of cars, and four checkboxes for four colors. When you click on a button the program will display the selected radio buttons and checkboxes. If you are a beginner, you will need to have already learned basic concepts in creating labels, text fields, and buttons using JavaFX (You can take the prerequisite course on Coursera - Create your first GUI application in jGRASP using JavaFX). If you already have GUI programming experience using JavaFX, this is an opportunity to refresh your skills by going back to basics. No matter your level, you will learn this course from a template program and build on your skills, thereafter you will be able to apply the skills obtained from this course in real-life programming exercises. To provide you with support outside the course, you will find some additional notes and examples that you can use at home. If you ever wanted to become better at GUI programming using JavaFX by building on your fundamental skills, this project is the right place to start!

您要培養的技能

  • Javafx
  • Radio Button
  • GUI programming
  • Java Programming
  • CheckBox

分步進行學習

在與您的工作區一起在分屏中播放的視頻中,您的授課教師將指導您完成每個步驟:

  1. Create the stage, layout, and scene

  2. Create three radio buttons and toggle group

  3. Display the selected radio buttons

  4. Create four checkboxes

  5. Display the selected checkboxes

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心