🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #13239

Re: How to change the TAB order of swing components?

#13239
From: Martin Anders
Date: Mon, 24 Aug 1998 00:00
33 lines
1809 bytes
Hi Matthew,

which forums do you recommend to get some hints for java (you said this
question has been asked numerous times).

The workaround you mentioned is in my case maybe not useful, because my
application has 4 panels (cardlayout) with alltogether about 120 components,
so I just let taborder as it is. Unfortunaly I got an exception when I press
the TAB on specific fields some kind of out of Bound exception with the
DefaultFocusManager.childrenTabOrder. This happened after I removed and added
some components. Hmmmm...the swing version 1.01 seems to be a little bit
buggy.

Thanks a lot for your suggestion...

Martin



Matthew Krevs wrote:

> This question has been asked numerous times on other forums with no real
> answer.
>
> Most people tend to reply and say don't override Swings focus handling
> unless you definitely have to.
>
> A really crappy workaround to your problem would be removing all you
> components from the container and then adding them again in the required
> order. ( I said it was a crappy workaround ) The overhead shouldnt be too
> big as you're not actually recreating your components, you're just sort of
> reorganising them on the screen.
>
Technical Details
Message-ID: <35E17071.92136454@ddsynergy.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35DBEA06.18E194C@ddsynergy.de> <6rqjkd$c9q9@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,5505e1209065c490
X-Google-Attributes: gid111d45,public
From: Martin Anders <m_anders@ddsynergy.de>
Subject: Re: How to change the TAB order of swing components?
Date: 1998/08/24
Message-ID: <35E17071.92136454@ddsynergy.de>
X-Deja-AN: 384191376
Content-Transfer-Encoding: 7bit
References: <35DBEA06.18E194C@ddsynergy.de> <6rqjkd$c9q9@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing