• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Bhagya Tangutur
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic