Create TableView | JavaFX GUI Tutorial for Beginners

preview_player
Показать описание
In this tutorial we will explore the JavaFX TableView Control. TableView is one of the most powerful and flexible JavaFX controls. It allows you to display an unlimited amount of data in a row and column format and it can be configured to be read-only or editable.

Check out my YouTube Channel for more FREE videos

Code for this tutorial is available on GitHub:

Master JavaFX in 5 Easy Steps:
Рекомендации по теме
Комментарии
Автор

Thank you so much! This was the missing piece I needed!

rmew
Автор

@Java Code Junkie Here's something cool you can do with the "TableColumn<S, T>" lines. You can change the type "T" reference to any preset object wrapper type (i.e., "String, Integer, Double, Boolean") to create different cell value factories for whatever type you want.

For instance, I have a "TableColumn<Data, Boolean>" declaration in a sample application. Then, by extending the initializable interface, I was able to specify in the corresponding cell value factory that I wanted a "new PropertyValueFactory<>()", and the correct value type still appeared in the corresponding cell when I ran the application. Pretty neat!

JLSXMK
Автор

Thanks for your video. It's very helpful for me to understand how i can create tableview.

bvseehf
Автор

This is the first video in a planned series on the JavaFX TableView control. Hope you find it useful.

JavaCodeJunkie
Автор

my PropertyValueFactory is not working, it kept saying error no matter how exact i copy, whats wrong?

dckyyy
Автор

Hey Junkie, How do we set evenhandler for treeview without using scenebuilder?

sihleeundefined
Автор

Hi there, I wanna know why I am getting "no content in table" message when i switch from login scene to the one that contains my table view, even tho my table view is not empty and I did print out in the console the content that should be displayed in the table view.. I would really appreciate it if you can tell me what could be the problem and thanks in advance

rawnl
Автор

java.lang.RuntimeException: module javafx.base cannot access class application.Person (in module TableViewExplorer) because module TableViewExplorer does not open application to javafx.base

Kennerdoll