Results 1 to 3 of 3
Thread: JTable problem
- 06-24-2009, 02:27 PM #1
Member
- Join Date
- Feb 2009
- Posts
- 96
- Rep Power
- 0
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.
- 06-24-2009, 02:47 PM #2
Hi,
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.
-Regards
RamyaRamya:cool:
- 06-27-2009, 06:15 AM #3
Member
- Join Date
- Jun 2009
- Posts
- 30
- Rep Power
- 0
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
-
Problem With AI and JTable
By elad_bj in forum New To JavaReplies: 8Last Post: 04-20-2009, 02:24 PM -
JTABLE problem
By MaximInf in forum AWT / SwingReplies: 4Last Post: 06-21-2008, 10:45 AM -
JTable problem
By robbertds1 in forum AWT / SwingReplies: 1Last Post: 05-20-2008, 06:34 PM -
Jtable duplicates through Hashtable (JTable condition problem) my assignment plz help
By salmanpirzada1 in forum Advanced JavaReplies: 2Last Post: 05-15-2008, 10:15 AM -
Problem with JTable
By Felissa in forum AWT / SwingReplies: 2Last Post: 07-04-2007, 09:25 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks