Thanks, Dave. I'll look into that.
My (limited) understanding is that a FocusManager is global to the whole
application. It is a singleton, right? I only want to change the focus
behavior of a single component, not the whole app.
Maybe I should have asked a different question -
Does anyone know of a good reference (book or web) on focus management,
standard and non-standard? Geary's Swing book has a couple of pages, but not
enough to handle this kind of problem.
-----Original Message-----
From: Wathen, Dave
To: 'Farwell, Paul'; [EMAIL PROTECTED]
Sent: 3/27/01 3:48 AM
Subject: RE: changing the tab behavior of JTabbedPane
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