How to make a button as a default in a Dialog Box
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   harshat_Taide
Posted On:   Tuesday, August 20, 2002 06:12 AM

Hi,

I have an applet which calls a dialog box. I have 2 buttons on this dialog and text box and checkboxes. I want when the user presses Enter key, the Ok button should be called.

I am using awt and do not want to use swing.

Any help is appreciated.

Thanks,

Harsha

Re: How to make a button as a default in a Dialog Box

Posted By:   ketan_patel  
Posted On:   Tuesday, August 20, 2002 01:10 PM

I never tried this but try adding a KeyListener to ur DialogBox

hope it helps...
About | Sitemap | Contact