Share your knowledge at the LQ Wiki.
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 03-16-2004, 03:35 AM   #1
LQ Newbie
Registered: Mar 2003
Location: Denmark
Distribution: Slackware and Gentoo
Posts: 20

Rep: Reputation: 0
Weird keyboard error in Java IDE's


When using NetBeans, Jedit or any other IDE written in Java, i'm unable to produce the vertical bar (|) character. This makes java programming a bit difficult of course

My keyboard layout is Danish, wich makes the "bar" an Alt-Gr combo, but other Alt-Gr combos works fine. The problem persists with both blackdown and sun java (1.4.1 and 1.4.2-04), and I've also tried different locale settings without any luck.

What really puzzles me is, that when I'm using a non-danish locale (POSIX), the special danish characters will produce a square in the IDE editor (wich is understandable - i can fix this changing my LANG var to da_DK), but the vertical bar simply produces no response at all!

Perhaps it's worth mentioning that the font used in the editors, displays the vert. bar perfectly in non-java x-applications.

I sure hope some of you guys can help me out here. Thanks.

Best regards,
Old 03-16-2004, 12:56 PM   #2
LQ Newbie
Registered: Mar 2003
Location: Denmark
Distribution: Slackware and Gentoo
Posts: 20

Original Poster
Rep: Reputation: 0
Well, I've done some further research now, and we're apparently dealing with a known problem with java and so called "dead keys". Since I'm no expert on how Linux deals with keyboards/keymaps, I have no idea what to do with this piece of information.

Also I've tried out a little test app from, wich outputs info on key events. The output fom pressing Alt-Gr + Vert. bar is:

java.awt.event.KeyEvent[KEY_PRESSED,keyCode=65406,keyText=Alt Graph,keyChar=Undefined keyChar,modifiers=Alt Graph,extModifiers=Alt Graph,keyLocation=KEY_LOCATION_STANDARD] <snip>
java.awt.event.KeyEvent[KEY_PRESSED,keyCode=129,keyText=Dead Acute,keyChar=Undefined keyChar,keyLocation=KEY_LOCATION_STANDARD] <snip>
java.awt.event.KeyEvent[KEY_RELEASED,keyCode=129,keyText=Dead Acute,keyChar=Undefined keyChar,keyLocation=KEY_LOCATION_STANDARD] <snip> 
java.awt.event.KeyEvent[KEY_RELEASED,keyCode=65406,keyText=Alt Graph,keyChar=Undefined keyChar,modifiers=Alt Graph,extModifiers=Alt Graph,keyLocation=KEY_LOCATI ON_STANDARD] <snip>
Unfortunately this setup (NetBeans + Sun JDK) works perfectly in Win32.
C'mon, we can't let them win this one!?


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
Taming a weird keyboard TroelsSmit Linux - Newbie 2 11-24-2005 07:50 PM
VERY WEIRD keyboard Presario problem madlinux Linux - Laptop and Netbook 0 11-17-2004 05:04 AM
Weird Quake 3 keyboard and mouse problem angelfly Linux - Games 2 02-16-2004 05:09 PM
Java IDE's? unholy Programming 3 11-02-2003 07:18 AM
weird keyboard looking dialogue box itsjustme General 11 08-19-2003 03:02 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:52 PM.

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