• Post Reply Bookmark Topic Watch Topic
  • New Topic

JOptionPane button focus

 
Sandeep Lakshmipathy
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends,
I have a JOptionPane's confirm dialog and the user will select either Yes or No. When I display the OptionPane, the YES button is highlighted and user may accidently press Yes by either pressing SpaceBar/Enter Key. I would like to change the default option as NO i.e. select the No Button when the OptionPane is displayed. Is there a way?
Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!