JavaFX component that emulates JTable

I have a large dataset that needs to be displayed to users and is looking for Swing JTable as a component in JavaFX .

+4
source share
3 answers

I recommend that you read a recent Amy Fowler blog post (especially paragraph 6):

Any Swing component can be embedded in a JavaFX scene graph using the SwingComponent wrap () function. This allows you to directly use Swing components that you have already configured, configured and connected to your application data; all that Java code can remain happily unmodified. Once you have created the structure of your scene layout, you can drag the Swing components to the appropriate places.

http://weblogs.java.net/blog/aim/archive/2009/06/insiders_guide.html

+4
source

Use the TableView control.

TableView is a β€œvirtualized” control that efficiently reuses a small number of node cells to represent a view in potentially very large datasets.

table view sample

Note. The other answers on this page that were written before 2012 relate to JavaFX 1.x and are deprecated.

+2
source

You can port the JTable to be used in JavaFX. Check out the next article http://java.dzone.com/articles/javafx-reintroduce-swing-jtabl

+1
source

Source: https://habr.com/ru/post/1286081/


All Articles