Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable that represents the DB Table ?  RSS feed

 
jhun kam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all. I just want to know if Java has any component(table or grid) that represent a Database Table. I've heard my friend who does VB that he can use a JTable-like component called 'grid' or something to show a DB table. Using that grid table, he can view, edit, add, remove the DB records, and the main point is all the details are hidden(the SQL stuffs).
If i were to do that using Java, i would have to create a JTable object with a TableModel that read a DB table, set it editable, handle every TableModelEvent in a TableModelListener, all the SQL-stuffs updating-deleting-adding any record done by a user. Quite sadly, All these stuffs are actually done with just a few codes using VB
Using Java, can i actually do easier than the stuffs i mentioned above ? If the component actually exists and free, can anybody tell me where to get it ? Thanks before.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I bet there is a lot more that goes into that VB code than what you think. Like actually setting up you VB environment to read from the correct database, connect, etc. With that being said, if you think it is better, do it in VB.
I don't know if there is already a package out there in JAVA just for you JTable, however, I do know that there are some DB management software packages written in JAVA. Just do a search on google. The only thing about those is that you can't take components of it and just put it in whatever code you want to, unless they are open source and you want to filter through all thier code and find there JTable and TableModel.
Now, with all THAT being said, you could just write a package yourself once, then use it over and over again on all your DB projects.
[ July 17, 2002: Message edited by: Gregg Bolinger ]
 
jhun kam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, i'll look around. Coding in VB never crossed my mind . I think i've found what i want @ blackdown.org. But if it doesnt satisfy me, i'll code my own. Thanks.
[ July 18, 2002: Message edited by: jhun kam ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!