This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
How can i set DefaultButton.Looks Simple,but little tricky
posted 13 years ago
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 ]