Results 1 to 3 of 3

Thread: JTable problem

  1. #1
    sandeepsai39 is offline Member
    Join Date
    Feb 2009
    Rep Power

    Default JTable problem

    I have an proble with Jtable.I want to insert a pariticular columnvalues(for example say 2nd column) on each row change .For example i inserted some data in 1st row ,2nd column cell ,now when i press down arrow or enter or tab ,then immediatly value in 1st row ,2nd column cell shoulld inserted into database .simillarly when i move from 2nd row to first row the same sholud happen.Ofcource this cause more interaction with database,i need this because my project includes critical data .When user enters data and middle of data entry if power is lost ,then all data should be inserted into corresponding cells.
    If it is not correct way ,suggest a better way to resolve this problem.
    Thanks in advance.

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Rep Power


    If you feel that data is huge and more interactions with the database then,retreive all the data and keep it in collection and use it.Don't unnecessarily keep the connection object active.
    Just start with the code so that I can help u to proceed.
    Write a pseudo code first and then proceed.

  3. #3
    sandeepsai17 is offline Member
    Join Date
    Jun 2009
    Rep Power


    thanks for reply .I don't have any prblms collecting data at atime into collection,you are it is not good to maintain interactions with database .
    I posted the same question with another approach in a new thread with title
    " inserting jtable values from jtable into database " can you pls help me on this post.
    Thank u.

Similar Threads

  1. Problem With AI and JTable
    By elad_bj in forum New To Java
    Replies: 8
    Last Post: 04-20-2009, 03:24 PM
  2. JTABLE problem
    By MaximInf in forum AWT / Swing
    Replies: 4
    Last Post: 06-21-2008, 11:45 AM
  3. JTable problem
    By robbertds1 in forum AWT / Swing
    Replies: 1
    Last Post: 05-20-2008, 07:34 PM
  4. Replies: 2
    Last Post: 05-15-2008, 11:15 AM
  5. Problem with JTable
    By Felissa in forum AWT / Swing
    Replies: 2
    Last Post: 07-04-2007, 10:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts