luck, db
There are no new questions, but there may be new answers.
Punit Jain wrote:also i m trying to add scrollbars but they are also not working.
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
When is it not working? right from the beginning or only when you click on the button?
Where are you telling the JTable that its data has changed?
why not just use the addRow of that method instead of adding it yourself to the Vector
Punit Jain wrote:
why not just use the addRow of that method instead of adding it yourself to the Vector
but it's not work for string..i tried like this:
table1.addRow(resultSet.getString("FirstName"));
luck, db
There are no new questions, but there may be new answers.
I already told you which overload of the method to use.
Punit Jain wrote:also, when i m clicking on search button, ir showing me records, and then when i am again clicking, it appends new records to earlier records in JTable.
how do i remove the previous data??
luck, db
There are no new questions, but there may be new answers.
Honestly, you can get all this by reading the API. Why don't you try reading it and actually understanding what the various methods do?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |