The Source for Java Technology Collaboration

Home » java.net Forums » OpenJFX » OpenJFX General Discussion

Thread: Using a JTable in JavaFX App

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 4 - Last Post: Aug 4, 2009 12:04 PM by: surikov Threads: [ Previous | Next ]
saeven

Posts: 5
Using a JTable in JavaFX App
Posted: Aug 5, 2008 7:12 PM
 
  Click to reply to this thread Reply

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

alexsch

Posts: 238
Re: Using a JTable in JavaFX App
Posted: Aug 6, 2008 12:25 AM   in response to: saeven
 
  Click to reply to this thread Reply

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

alexsch

Posts: 238
Re: Using a JTable in JavaFX App
Posted: Aug 6, 2008 12:30 AM   in response to: saeven
 
  Click to reply to this thread Reply

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

saeven

Posts: 5
Re: Using a JTable in JavaFX App
Posted: Aug 6, 2008 12:42 AM   in response to: alexsch
 
  Click to reply to this thread Reply

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

Posts: 9
Re: Using a JTable in JavaFX App
Posted: Aug 4, 2009 12:04 PM   in response to: saeven
 
  Click to reply to this thread Reply

use CRUDfx SDK from http://code.google.com/p/crudfx/
see screenshot with table http://www.javafx.me/crudfx/examples/gderby.jpg




 XML java.net RSS