• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to set focus?  RSS feed

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a JSplitPane with left pane and right pane. When the left
pane gain focus, how can I set the focus on the right pane. Is there
any method for this implementation?
Thanks!
 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set focus to the rightpane by using
leftpane.transferFocus() ..now at a time you can setfocus to a single component.
 
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!