my dog learned polymorphism
The moose likes Swing / AWT / SWT and the fly likes how to set focus? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to set focus?" Watch "how to set focus?" New topic

how to set focus?

Stephen Lee
Ranch Hand

Joined: Dec 11, 2001
Posts: 74
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?
Vinod Venugopal
Ranch Hand

Joined: Dec 06, 2000
Posts: 148
You can set focus to the rightpane by using
leftpane.transferFocus() at a time you can setfocus to a single component.

- Vinod<br />-------<br />SCJP2
I agree. Here's the link:
subject: how to set focus?
It's not a secret anymore!