File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes DataTable,DataGrid and Databindings in JAVA. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "DataTable,DataGrid and Databindings in JAVA." Watch "DataTable,DataGrid and Databindings in JAVA." New topic

DataTable,DataGrid and Databindings in JAVA.

Venkata Sirish
Ranch Hand

Joined: Apr 09, 2007
Posts: 112
I think you may be knowing that there is a concept called DataTable ,DataGrid and DataBindings in (Microsoft).NET ... DataTable to hold the data from a Table in a DataBase.... DataGrid to display the data in a DataTable .... DataBindings to Bind Table in DataBase and the data in DataGrid ...

Is there any concept in JAVA to achieve this .....
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
I think there's nothing in Java that binds DB data so tightly to UI components as what .Net does. The Swing concept of a TableModel and a JTable could be used to implement something related. In a web app, the tag library DisplayTag does something similar.
Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Dive into JSF ...

Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Pat Farrell

Joined: Aug 11, 2007
Posts: 4659

GlazedLists will handle the row, table, resizing, sorting, etc. Very cool open source Java.

You will have to bind your business objects (rows) to the database, and hand your rows to the GlazedLists tools.

Binding Java objects to relational tables is a separate topic, I think there are serveral forums here on just that.

If your Business objects have fields that map clearly (one to one) with fields in the RDBMS tables, JDBC is not difficult to use. It is not as trivial to use as some of the .net stuff, but not hard.
I agree. Here's the link:
subject: DataTable,DataGrid and Databindings in JAVA.
It's not a secret anymore!