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 / General / August 2007

Tip: Looking for answers? Try searching our database.

<ENTER> key constant of JAVA.

Thread view: 
Eitan M - 10 Aug 2007 13:54 GMT
Hello.
Where can I find all the virtual key (<enter> or <return>) as constant
values ?

Thanks :)
Thomas Fritsch - 10 Aug 2007 13:59 GMT
> Where can I find all the virtual key (<enter> or <return>) as constant
> values ?
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/KeyEvent.html#VK_ENTER

Signature

Thomas

Thomas Hawtin - 10 Aug 2007 14:23 GMT
>> Where can I find all the virtual key (<enter> or <return>) as constant
>> values ?
> http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/KeyEvent.html#VK_ENTER

Years ago, on one Solaris machine I found the numeric gave an unusual
high value (65 thousand odd). Presumably just an odd configuration
somewhere. Running this machine with Solaris and a Sun keyboard produced
the expected value.

Tom Hawtin
Eitan M - 10 Aug 2007 14:41 GMT
Thanks .
javayahtzee@gmail.com - 10 Aug 2007 16:15 GMT
> Thanks .

If you want code that is reliable on all machines you should look in
the KeyEvent class for the constants. for example the constant for
enter is 'KeyEvent.vk_enter'.
All the keys have their constants with the prefix 'vk_' you can look
in the constants section of the KeyEvent html document to find the
names of all the constants.


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



©2008 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.