• Post Reply Bookmark Topic Watch Topic
  • New Topic

refiring a previously selected button  RSS feed

 
Thomas Paul Bigbee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hit the "Add" button - this brings me into the action listener's
actionPerformed method, this method brings up an "Add Record" form
after successfully saving this record, I would like to ask (JOptionPane)
the user if they would like to add another record. In other languages, I
would stuff the keybords with the (Atl-A) or whatever Key Combination
that would call said button.

My question is this - how do I programatically reselect the "Add" button
after a successfull save?


Thanks, in advance,Tom

any help at all would be appreciated, thanks, in advance, Tom
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
something like this might be all you need to do

 
Thomas Paul Bigbee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, for all your help, Tom
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!