A suggestion (and that's all it is I haven't tried this): you could write
a custom FocusManager.

Regards

Dave Wathen
Goldman Sachs Asset Management
3rd Floor, Procession House
55 Ludgate Hill
London EC4M 7JN
+44 (0)20-7774-2998

It is not necessary to understand things in order to argue about them.
(Caron de Beaumarchais)


-----Original Message-----
From: Farwell, Paul [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 4:58 AM
To: [EMAIL PROTECTED]
Subject: changing the tab behavior of JTabbedPane


Anyone have a suggestion for getting the following focus behavior in a
JTabbedPane?

Each tab's panel consists of a set of buttons. In pressing the TAB key,
focus moves left to right across the buttons in the first panel. Then it
jumps to the first button on the second tab, making the second tab the
selected (visible) tab. It traverses the buttons in the second panel, then
jumps to the third panel, etc. After it traverses the last panel, it returns
to the first button on the first panel.

By default, it looks as if      focus leaves the JTabbedPane after
traversing the buttons on the panel of the first tab.

BTW, I plan on experimenting with isFocusCycleRoot() method in my subclass
of JTabbedPane, but I have a feeling it won't solve the problem of getting
focus to jump from one tab to the next.
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to