This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, Is it possible to have a JTable for data entry? The idea is that this table shows only one row at start and whenever the user press tab in the last column of the table, a new row is added so that he may make new entries. This means to somehow pick up the tab key in the last column (what class/listener to use?) and genetarte a new row add it to table and update the table, being careful that previous entries are not lost...(quite a job!) The second solution may be to estimate the maximum required rows for entries and display them right from the start. But the problem in this solution is how to know that, say, the first 20 rows have data and not the remaining 30 ones? Any ideas plus code plz, Thanx in Advance
That easy?!Gee thanks! Now the second part... How will I detect that the tab key was typed in the last column. I am able to get the key typed in any column of the JTable but not a specific column. Is there any solution? Thanx, Maki Jav