🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problems with Swing

#329
From: Ernie Rael
Date: Tue, 05 Jan 1999 00:00
46 lines
2415 bytes
I think i saw somewhere that focus traverses in the order that
components are added. That, in concert with disabling 
a component from getting focus, might help in some cases.

-ernie

On Mon, 4 Jan 1999 08:24:42 +1100, "Matt Krevs"
<mattkrevs@flex.com.au> wrote:

>With 1)
>
>I think the way Swing handles focus is that it tries to navigate left to
>right and top to bottom through components.
>
>If you want to override default Swing focus management ( and I reckon
>everyone with any more than a few components on a window will need to ) you
>have a couple of options.
>
>1. disable swing focus management and manually call
>setNextFocusableComponent() for each component. This works fine for simple
>windows with only a few components but will very soon get VERY tedious
>
>2. Create you own implementation of FocusManager. This is what I think I'll
>do when Swing focus management finally drives me up the wall. I've had a
>look at the code and it doesn't exactly look like a simple thing to do.
>
>Has anyone solved the focus management problem out there?
>
>Ramanan Varadarajan wrote in message <36881983.CED5FF22@lancomp.com>...
>>Hi All
>>
>>I have the following problems:
>>
>>1) I am unable to figure out how to control the tab-order with in a
>>frame or panel...
>>    i.e how I switch to focus between different components in a panel or
>>frame
>>   when I press the TAB Button in the keyboard
>>
>>2) Also, even when a focus is on a JButton when I hit enter, it does'nt
>>seem to
>>    depress (to give the pressed L&F)... even if action is fired
>>
>>Any Help is Appreciated
>>
>
Technical Details
Message-ID: <3692a243.9166250@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36881983.CED5FF22@lancomp.com> <76on1a$7652@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,37e316fe0a72e0aa
X-Google-Attributes: gid111d45,public
X-Google-Thread: f5619,37e316fe0a72e0aa
X-Google-Attributes: gidf5619,public
X-Google-Thread: fa3e3,37e316fe0a72e0aa
X-Google-Attributes: gidfa3e3,public
From: err@raelity.com (Ernie Rael)
Subject: Re: Problems with Swing
Date: 1999/01/05
Message-ID: <3692a243.9166250@forums.borland.com>
X-Deja-AN: 428909699
Content-Transfer-Encoding: 7bit
References: <36881983.CED5FF22@lancomp.com> <76on1a$7652@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,borland.public.jbuilder.ide,borland.public.jbuilder.jbcl