Article View: borland.public.jbuilder.java.swing
Article #299Re: Problems with Swing
From: Matt Krevs
Date: Mon, 04 Jan 1999 00:00
Date: Mon, 04 Jan 1999 00:00
36 lines
2031 bytes
2031 bytes
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:
<76on1a$7652@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36881983.CED5FF22@lancomp.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: fa3e3,37e316fe0a72e0aa X-Google-Attributes: gidfa3e3,public X-Google-Thread: f5619,37e316fe0a72e0aa X-Google-Attributes: gidf5619,public From: "Matt Krevs" <mattkrevs@flex.com.au> Subject: Re: Problems with Swing Date: 1999/01/04 Message-ID: <76on1a$7652@forums.borland.com> X-Deja-AN: 428412418 References: <36881983.CED5FF22@lancomp.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing,borland.public.jbuilder.ide,borland.public.jbuilder.jbcl