Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

transferring focus to previous component.  RSS feed

 
ravindran shanmugam
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I transfer the focus to the previously focussed component . just like the transferFocus() which transfers the focus to next focussable component, I want to transfer the focus to the previuos focussable component ?
Thanx in advance.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yourCurrentComponent.setNextFocusableComponent(yourOtherComponent);


------------------
Happy Coding,
Gregg Bolinger
 
Suraj Chandran
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yourComponent.transferFocusBackward()
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!