JavaFX [1.3] – TableView (?)


Yes! TableView or Data-Grid is really important control and must be included in JavaFX. If you are really in hurry and can use JavaFX 1.2, you can use XTableView from JFXtras. They are also working on JavaFX 1.3 complaint JFXtras 0.7. If you want it to be part of official JavaFX version, put more pressure on Jonathan Giles

If both these strategies failed, you can still put together TableView using a group of ListView. All foundation for implementing a scalable TableView is already in place based on Cell API.



For Applet mode, click on above image
For standalone mode

Mean while you can use above TableView implementation. View is constructed using a set of ListView. The data model is direct copy of Swing. So didn’t really put any effort for implementing this…

Try it out and let me know feedback.. Please let Jonathan Giles know all your requirements on TableView, so that it will be complete and will address all your requirements when its released

Advertisements

JavaFX – Database + Table


Bookmark and Share

  Please refer to another post for virtualized scalable implementation of TableView for JavaFX 1.3

JavaFX + Apache Derby Database + JDBC – I have seen several queries related to this, hence thought of providing a sample application. In order to avoid any back-end database setup, I’m using Embedded Derby which will create database in <UserHome>/JavaFXDatabase/. The Derby jars are hosted as separate JNLP extension – ApacheDerby.jnlp – which is referenced in application jnlp files.

Click “Populate” button to add some dummy data to the Table.


To launch click on above image or

Note: Application may take a little longer to download due to large size of Derby jar files. Application will show two certificate dialogs – One for application and another for Derby Extension. These permissions are required so as to create database in user’s home directory.

Database access code is same as any other java application – DBUtils.java. The table is implemented using Rectangle, Label and Panel Layout. Its not really scalable as its not using any virtual concepts, all nodes are real. The approach can be used for simple applications. Please refer to CustomerTable.fx for more information.

Try it out and let me know feedback..

Please also refer to article – JavaFX Database Programming with Java DB for step by step approach..