Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / November 2003

Tip: Looking for answers? Try searching our database.

Arrow keys / Cursor keys in a ButtonGroup with radiobuttons

Thread view: 
Goetz Markgraf - 17 Nov 2003 10:02 GMT
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
Andrew Thompson - 17 Nov 2003 11:00 GMT
...
> 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
Goetz Markgraf - 18 Nov 2003 15:59 GMT
> ...
> > I am using swing on Windows Platform. On other windows-GUIs, radio
[quoted text clipped - 19 lines]
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.