Create a simple list using ListView in JavaFX

提供方
Coursera Project Network
在此指导项目中,您将:

Use JavaFX framework to create a simple GUI with a list view, one text field, and two buttons.

I​nteract with two buttons to read selected list item and to add typed item to the list.

Clock2 hours
Intermediate中级
Cloud无需下载
Video分屏视频
Comment Dots英语(English)
Laptop仅限桌面

In this project, you will create a simple GUI application that displays a list using list view in JavaFX framework. A template program is provided to which you will create and add a list of programming languages, a label, two buttons, and a text field. When you click on the first button the selected list item will be fetched. When you enter a new item in the text field and click on the second button, the new item will be added to the list.

您要培养的技能

  • Javafx
  • Java Programming
  • ListView

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  1. Create a list view and add it to the layout

  2. Create a label, two buttons, and a text field to work with the list view

  3. Add items to the list view programmatically

  4. Read selected item when button is clicked

  5. Display new typed item on the list view when button is clicked

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心