 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Goetz Markgraf Guest
|
Posted: Mon Nov 17, 2003 10:02 am Post subject: Arrow keys / Cursor keys in a ButtonGroup with radiobuttons |
|
|
Hi,
I am using swing on Windows Platform. On other windows-GUIs, radio
buttons can be selected by the arrow or cursor keys. If one radio
button has the focus, you just press the right or down key and the
next one is selected.
I am pretty sure, that can be done with swing, too.
Any help?
Thanx,
Goetz
|
|
| Back to top |
|
 |
Andrew Thompson Guest
|
Posted: Mon Nov 17, 2003 11:00 am Post subject: Re: Arrow keys / Cursor keys in a ButtonGroup with radiobutt |
|
|
"Goetz Markgraf" <goetz.markgraf (AT) t-online (DOT) de> wrote
....
| Quote: | I am using swing on Windows Platform. On other windows-GUIs, radio
buttons can be selected by the arrow or cursor keys.
....
I am pretty sure, that can be done with swing, too.
|
I thought it would be a 'look-and-feel' thing, but I just
checked my own software project and can report the
following..
Metal LnF and Windows LnF behave the same way
(in this regard) - you need to 'tab' vertically between
choices, but you _can_ traverse the buttons in a radio
group (or rows of buttons, for that matter)
_horizontally_ using either LnF.
I don't think Sun quite got the Windows LnF
right here.
(That is the limit of my expertise on LnF,
though a more experienced GUI person might
be able to confirm whether your problem
might be solved by altering an exisiting LnF)
--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site
|
|
| Back to top |
|
 |
Goetz Markgraf Guest
|
Posted: Tue Nov 18, 2003 3:59 pm Post subject: Re: Arrow keys / Cursor keys in a ButtonGroup with radiobutt |
|
|
"Andrew Thompson" <andrew64 (AT) bigNOSPAMpond (DOT) com> wrote
| Quote: | "Goetz Markgraf" <goetz.markgraf (AT) t-online (DOT) de> wrote in message
news:f5ac480b.0311170202.1e333749 (AT) posting (DOT) google.com...
...
I am using swing on Windows Platform. On other windows-GUIs, radio
buttons can be selected by the arrow or cursor keys.
...
I am pretty sure, that can be done with swing, too.
I thought it would be a 'look-and-feel' thing, but I just
checked my own software project and can report the
following..
Metal LnF and Windows LnF behave the same way
(in this regard) - you need to 'tab' vertically between
choices, but you _can_ traverse the buttons in a radio
group (or rows of buttons, for that matter)
_horizontally_ using either LnF.
I don't think Sun quite got the Windows LnF
right here.
(That is the limit of my expertise on LnF,
though a more experienced GUI person might
be able to confirm whether your problem
might be solved by altering an exisiting LnF)
|
I did not find out about the LnF-Stuff, but I solved it with adding an
inputMap/actionMap pair to the surrounding Panel.
Thanx everybody
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|