*
The moose likes Swing / AWT / SWT and the fly likes How can i set DefaultButton.Looks Simple,but little tricky Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How can i set DefaultButton.Looks Simple,but little tricky" Watch "How can i set DefaultButton.Looks Simple,but little tricky" New topic
Author

How can i set DefaultButton.Looks Simple,but little tricky

Bhagya Tangutur
Ranch Hand

Joined: Oct 21, 2002
Posts: 88
Gurus,
Here is my question.I want to make myButton as Default Button.I am using TextPane in the same Frame.
I Tried to set rootPane.setDefaultButton(mYButton);This is not working,because as for the java API.It says if you are using components such as JTextPane it consumes ActivationEvent.
Any thoughts or work arounds .would be great help.
Thanks
[ November 22, 2002: Message edited by: kumar B ]

Sun Certified Java Programmer
 
wood burning stoves
 
subject: How can i set DefaultButton.Looks Simple,but little tricky