• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable suitability.  RSS feed

 
Ranch Hand
Posts: 216
Eclipse IDE Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm about to start work on a user interface that will allow a user to maintain a 'products' table that could contain many thousands of records. In the past I've populated a JTable with records, but I'm concerned about the amount of RAM this approach would potentially take if the user neglected to put in any sensible search criteria. I guess I'm after a smarter type of DB bound data table that lets you scroll though a database by just loading those records that are required to satisfy the view. That sounds frighteningly complicated for me to code myself. Are there any tools out there which tackle this problem, or should I be addressing the problem in a different manner.

Thanks

Dave.
 
Bartender
Posts: 9443
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by David Garratt:
I guess I'm after a smarter type of DB bound data table that lets you scroll though a database by just loading those records that are required to satisfy the view. That sounds frighteningly complicated for me to code myself.


It isn't that complicated. As a matter of fact, There's an example in the Oreilly Swing book of such a thing. You can check out the example source code here. Look for the classes named Paging*.
 
David Garratt
Ranch Hand
Posts: 216
Eclipse IDE Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks for that. I'll take a look and see if I can figure it out.

Dave
 
David Garratt
Ranch Hand
Posts: 216
Eclipse IDE Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks for that. I'll take a look and see if I can figure it out.

Dave
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!