Set focus in JTabbedPane in JInternalPane

S

sdehn

I am using a JInternalPane which contains a JPanel which contains a
JTabbedPane. On one of the tab panes (not the top tab), I've given
focus to a JTextField. When the JInternalPane is activated, I can see
that the JTextField does indeed have focus, but the tab it is on has
not been selected (i.e., not visible). Is there a way that I can have
the tab containing the field with focus automatically selected?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top