🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#13233
From: Matthew Krevs
Date: Mon, 24 Aug 1998 00:00
29 lines
1632 bytes
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.

Martin Anders wrote in message <35DBEA06.18E194C@ddsynergy.de>...
>Hi,
>
>I wonder how to change the tab order of swing components added to the
>gui. It seems that the default tab order is equal to the order I've
>added the components. Even if I use the "setNextFocusableComponent"
>method there is no difference to the preset tab order. I've overwritten
>the "isManagingFocus" method of the root panel as mentioned in the swing
>docu but it doesn't help??
>
>Perhaps I have to disable some "default Focusmanager" but I don't know
>how.
>
>Any help appreciated
>
>Martin
>
Technical Details
Message-ID: <6rqjkd$c9q9@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35DBEA06.18E194C@ddsynergy.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,5505e1209065c490
X-Google-Attributes: gid111d45,public
From: "Matthew Krevs" <mattkrevs@flex.com.au>
Subject: Re: How to change the TAB order of swing components?
Date: 1998/08/24
Message-ID: <6rqjkd$c9q9@forums.borland.com>
X-Deja-AN: 384060325
References: <35DBEA06.18E194C@ddsynergy.de>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing