posted 20 years ago
I have a Panel which has a JTable and "MakeReservation" button. For JTable the selectionModel is set to ListSelectionModel.SINGLE_SELECTION. The button "MakeReservation" is set as the default button. When the user selectes a row and presses enter, the cursor moves to the next row. Though "MakeReservation" button is set as default button. What should be done to make the makeReservation button be activated when user selects a row and presses enter. Please help. Thanks.
[ April 14, 2003: Message edited by: Saraswathy Krishnamoorth ]