• Post Reply Bookmark Topic Watch Topic
  • New Topic

Focus - "blur" command?  RSS feed

 
Alex Ku
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is there an opposite method to component.requestFocus()? like component.blur().
thanks
Kawaii
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly would you want this "blur" method to do?
 
Alex Ku
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you open up a second dialog on the FocusLost method, the JComponent that triggers the focus lost will be no longer handle focus event. (And it appears that it has the focus, the cursor is blinking) That's why I want a blur method that can take away the focus.
I did a search on the Sun's bug DB. It turns out that the problem I encountered is a bug on NT and 2000. Bug Id 4381959
kawaii
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!