• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DataTable,DataGrid and Databindings in JAVA.

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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 .....
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dive into JSF ...
 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Make yourself as serene as a flower, as a tree. And on wednesdays, as serene as this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic