This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Jtable question 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 » Swing / AWT / SWT
Bookmark "Jtable question" Watch "Jtable question" New topic

Jtable question

Sandeep DSouza

Joined: Dec 18, 2003
Posts: 18
I am trying to do some work with Jtable but need to know if it can be done for sure before i go ahead with it.
I am trying to insert some data into a database table using JTable .... Intially when it starts the Jtable needs to start with only one row and .. and it needs to needs to add more rows one by one when one of the columns gets focus. there are totally 6 columns .. in which 3 of them are regular textfields .. but the other three.. when u enter the data it should be like a combo box. .. where u just select from the list .. and the options in the 2nd and 3rd combo boxes depend on the option chosen in the first one. that was when i eneter data into the databae ..
now when i need to display data .. the function should be somewhat the same .. the numbers of rows should be equal to the number of rows in the database ... and should be able to modify the data.
Can somebody who knows Jtable well tell me if this can be done ... and give me an idea as per how to do this one .
Thanks in advance ,
I agree. Here's the link:
subject: Jtable question
It's not a secret anymore!