<Swing Dev> Selecting cells in jtable

Sanjaya Liyanage sanjayacl at gmail.com
Wed Mar 14 16:07:19 UTC 2012


Hi,
   I have a jtable with 5 rows and 5 columns.I want to select the
following diagonal cell when the enter key is pressed.Initially 0,0
cell is selected.(1,1),(2,2),(3,3),(4,4) cells should be selected when
the enter key is pressed 4 times consecutively.How can I do this?

thank you
Sanjaya



More information about the swing-dev mailing list