you should not need any mnemonics. The yes button should be the default button, and <ESC> should work for No
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Samivelu, Srinivasan Sent: Monday, July 29, 2002 4:42 AM To: '[EMAIL PROTECTED]' Subject: Set mnemonics for the OptionPane Buttons Dear All, I have few queries to be cleared. Looking forward for u r help guys. 1. I use JOptionPane.showConfirmDialog(this,"Text1","Text2", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) in my applet. I wish to set the mnemonics for the Yes & No buttons. I see there is no way i can directly get the reference of the buttons. Any idea or workarounds? 2. I want to add a Maximize button to the title bar of a JDialog. Seems to be bit difficult as it doesn't give that facility directly. Thought of using a JFrame instead. Here again i need to remove the minimize button and set the frame modal. So hope u understand the problem. Any idea or workarounds? wbr, Srinivasan _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing
