Skip to main content

Using a JTable in JavaFX App

4 replies [Last post]
saeven
Offline
Joined: 2004-10-27

Hi Everyone,

I've been posting in the Sun forums at http://forums.sun.com/forum.jspa?forumID=932, but it appears that this is where the action is at!

I'd like to place a data table in a JavaFX app as exercise, but cannot seem to find how this is done. There's so much "beta" documentation out there, or posts containing code that doesn't work, that it has become a bit confusing.

I'm also scanning the javafx API, and can't seem to find anything to do with a javafx table.

so.. Simple example on how to embed a JTable into a SwingFrame anywhere? If you could, please include an example that uses a DefaultTableModel somewhere; I'm still a bit fuzzy on the interaction between POJOs and JavaFX

Thanks.
Alex

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexsch
Offline
Joined: 2007-07-12

You can look at the source code for the StockWatcher sample from http://java.sun.com/javafx/reference/samples

saeven
Offline
Joined: 2004-10-27

I don't think that sample implements a scrolling type mechanism though does it? The goal is to iterate over large sets of data, whose members would be shown in a scrolling grid format (a-la JTable).

I suppose we'll have to wait until the JTable is actually implemented.

surikov
Offline
Joined: 2007-05-26
alexsch
Offline
Joined: 2007-07-12

The Table component has not been implemented yet in the new library.
See http://openjfx.java.sun.com/jira/browse/JFXC-1246