Answer the question
In order to leave comments, you need to log in
How to create listView from objects in javaFx?
Good afternoon, the question arose of how to correctly create a listView so that it shows only one variable from the list of objects. That is: we have a list of objects that contain a name and some characteristics. I need a list of objects so that only the names are indicated in the listView
Answer the question
In order to leave comments, you need to log in
Good afternoon.
If the question is in terms of implementation, then you need to get ObservableList<String>
the names from yours List<T>
and output it:
https://metanit.com/java/javafx/4.8.php
If the question is in terms of components, then:
For JavaFX, there is such a library as JFoenix. For example, you can use its functionality.
www.jfoenix.com/documentation.html#ListView
You can also use ControlsFX - https://controlsfx.github.io/features/listselectio...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question