• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Code Not Running on Redhat 9 Properly  RSS feed

 
Tapan Maru
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a user management GUI in swing.
In that I am having a screen where user can change his password.

Now I want to display a POP Up message to the user if the CAPS LOCK key is ON when the any of the password field gets focused.

I have written the following code which is running on windows XP completely fine but on Redhat Linux 9, it gives UnsupportedOperationException

boolean isCapsLockOn = Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK)

It may be the problem of hardware also but I am not sure about it....
 
Joe Ess
Bartender
Posts: 9441
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What VM are you running? Redhat Linux 9 has been unsupported since April 2004 so I anticipate that you are running different VM's on Windows and Linux.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get the same result for xUbuntu 6.06 with sun-java 1.5 and 1.6.

Perhaps the shell-command setleds may help you to investigate the kb-state.
Since it needs sudo-permissions maybe not a good idea.

[ June 19, 2007: Message edited by: Stefan Wagner ]
[ June 19, 2007: Message edited by: Stefan Wagner ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!