0

Hi, while im doing my project, i have problem to save edited data from jtable into database..i have attach the sample interface and here is the code...please help me...tq

ResultSet rs=st.executeQuery("select * from 3BITC");
          
  while(rs.next()){
  jTable1.getValueAt(row, col);
  row++;
  col++;
                  
  }
  rs.close();
  try{
                              
  Statement st1=con.createStatement();
  ResultSet rs1=st1.executeQuery("UPDATE 3BITC SET Status = ? WHERE Blue_Add = ? "); 
         
          while(rs1.next()){
               
               
               }
          rs1.close();
4
Contributors
7
Replies
28
Views
5 Years
Discussion Span
Last Post by Thigina
Featured Replies
  • 1
    Ezzaral 2,714   5 Years Ago

    Take a look through the [URL="http://download.oracle.com/javase/tutorial/uiswing/components/table.html"]tutorial on using tables[/URL] and stop hijacking the OP's thread with your own questions. Read More

0
while(rs.next()){
jTable1.getValueAt(row, col);
row++;
col++;
 
}

WHAT ARE U DOING WITH IT?

Im a IT student..

-1

Data can not be edited in a Jtable.
You have to take some textfild.

Save the data into a data base table.
You do not say which data base server you are using?
do this.
Ask me later.

0

>Data can not be edited in a Jtable.
It certainly can be edited and saved back to the database. Ignore this nonsense.

0

Please show how to edit in Jtable.Not in Database table.Only in Jtable.

It certainly can be edited and saved back to the database. Ignore this nonsense.

0

Data can not be edited in a Jtable.
You have to take some textfild.

Save the data into a data base table.
You do not say which data base server you are using?
do this.
Ask me later.

Thank you very much for advices Anuradha Mandal...i have solved it

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.