Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-11-2007, 01:27 PM   #1
King V
Registered: Oct 2001
Location: New Jersey
Distribution: Mandrake 10.2
Posts: 75

Rep: Reputation: 15
Java, Fedora Core 6, AltGr, and key events


I've run into something of a puzzle. I'm trying to capture key events in Java, with the Fedora Core 6 operating system. The system is currently set to a typical U.S. English setup, and I'm trying to change things to German.

Also, I'm using Sun's JRE, both 1.4.2_13 and 1.5.0_11.

A colleage and I were trying to see what could be done about the AltGr key, which doesn't seem to generate events when using Sun's KeyEventDemo program.

However, we've noticed that the desktop GUI (we're using the Gnome layout as the FC6 installer sets it up), has what appears to be two separate options for setting the keyboard.

The first: System -> Preferences -> Keyboard
The second: System -> Administration -> Keyboard

Now at some point, we actually had things set such that the Java KeyEventDemo program would actually capture the keypress and key release of AltGr - but for the life of us, we can't remember what we did or how, and are now unable to duplicate that scenario.

Can anyone offer me any guidance on this? Thanks in advance! Ideally we'd need the same info for UK keyboards as well.
Old 04-11-2007, 02:54 PM   #2
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
I think the key (so to speak ) is the first one system->preferences->keyboard

Choose the layout tab and add the layout you use. So if you use the German layout most, set it to default. Also choose the keyboard model.

I am using British English setup on FC6 with a Norwegian Microsoft Internet keyboard. Useful when I send emails around with these strange Scandinavian characters (,,)...

Last edited by monsm; 04-11-2007 at 02:55 PM.
Old 04-12-2007, 11:11 AM   #3
King V
Registered: Oct 2001
Location: New Jersey
Distribution: Mandrake 10.2
Posts: 75

Original Poster
Rep: Reputation: 15
Well, the keys work in general... but we still don't get any key events for AltGr in KeyEventDemo


international, keyboard

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 5 stopped responding to some events kourama Fedora 2 09-15-2006 01:10 PM
AltGr key does not work OlegL Debian 5 09-17-2004 02:22 AM
AltGr key does not work OlegL Linux - Laptop and Netbook 2 08-30-2004 09:35 AM AltGR key problem wigry Slackware 3 07-18-2004 12:15 PM
AltGr key not working in X iceman47 Linux - Software 3 03-07-2004 06:27 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration