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 / March 2006

Tip: Looking for answers? Try searching our database.

please I need help - getKeyStates

Thread view: 
Jeff - 26 Mar 2006 21:57 GMT
midp 2.0
Java SE 5.0
J2ME version 2.2

When I in my midlet pushes the 6 key on the emulator or the 6 key on my
nokia 6630, "RIGHT_PRESSED" is written to my debug window

Nothing happens when pushing the 0 key....

Here is my trouble code:
int keyState = getKeyStates();
if ((keyState & RIGHT_PRESSED) != 0) {
   System.out.println("RIGHT_PRESSED");
}
if ((keyState & Canvas.KEY_NUM0) != 0) {
  System.out.println("HELLO WORLD");
}

I want HELLO WORLD to be written to the debug window when I push the 0 key
and RIGHT_PRESSED when I pushes the right navigation key!

What must I change to the code to solve this????

Jeff
Jeff - 27 Mar 2006 08:54 GMT
solved, case closed

> midp 2.0
> Java SE 5.0
[quoted text clipped - 20 lines]
>
> Jeff
Alex Hunsley - 27 Mar 2006 12:04 GMT
> solved, case closed

Hi Jeff
What was the solution then?


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.