This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
Hi, I hasve to generate and empty row onthe click 'Enter' at the last row in table. pl suggest me the way bhuwan
posted 15 years ago
You will need to add a keyListener to your table. Listen for the VK_ENTER event, and when you see it (in the actionPerformed method), add a row to your table model, and call its fireTableStructureChanged() method. This will redraw the table. HTH e
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>"Those who cast the votes decide nothing. Those who count the<BR>votes decide<BR>everything." <BR> -Joseph Stalin<HR></BLOCKQUOTE>