Forums Register Login

Dynamic generation of row

+Pie Number of slices to send: Send
Hi,
I hasve to generate and empty row onthe click 'Enter' at the last row in table.
pl suggest me the way
bhuwan
+Pie Number of slices to send: Send
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
mooooooo ..... tiny ad ....
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 720 times.
Similar Threads
prepareStatement Help
Looping over the contents of the file...
Stored Procedures
Isolation levels in a transaction
Flashing a row in Jtable
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:48:58.