×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    10

    Question Key Pressed events in J2ME Polish?

    HI!

    can i get the pressed key code in my J2ME Polish Application ???

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Key Pressed events in J2ME Polish?

    Sure! Have you tried with the classic keyPressed() method?

    Pit

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    10

    Exclamation Re: Key Pressed events in J2ME Polish?

    Key pressed method works only By extending Canvas but i am using midlets and J2ME Polish ...

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Key Pressed events in J2ME Polish?

    I'm not a J2mePolish expert, but if you use its Screen object or its subclasses, since they all extend Canvas, you should be able to manage key events as you do with Canvas.

    Pit

  5. #5
    Registered User
    Join Date
    Feb 2005
    Posts
    1

    Re: Key Pressed events in J2ME Polish?

    Have you found any solution for catching key events under Polish?
    I did not found a solution.
    My code creates J2ME Polish "Form" and it does not handle key events

  6. #6
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Key Pressed events in J2ME Polish?

    Hi markdude,

    have you tried implementing handleKeyPressed/Released/Repeated methods?

    Also, the J2MEPolish Form JavaDocs could help:

    http://www.j2mepolish.org/javadoc/j2...h/ui/Form.html

    Pit

  7. #7
    Super Contributor
    Join Date
    Jun 2007
    Location
    Mumbai
    Posts
    539

    Re: Key Pressed events in J2ME Polish?

    Quote Originally Posted by matifk View Post
    HI!

    can i get the pressed key code in my J2ME Polish Application ???
    Hi, if u extend any Form or List, all are extended from Canvas.. so there u can override keyPress() and get key events.
    au revoir
    Prakash Raman

  8. #8
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Key Pressed events in J2ME Polish?

    Overriding keyPressed/keyReleased/keyRepeated methods is also good, just be sure to call the 'super' implementation of each (e.g.: super.keyPressed()) to allow j2mepolish to correctly work.

    Pit

Similar Threads

  1. CEikEdwin not receiving delete key events
    By hclemson in forum Symbian
    Replies: 3
    Last Post: 2008-04-07, 14:19
  2. How to Simulate Key Events in PyS60?
    By changhyp in forum Symbian
    Replies: 2
    Last Post: 2007-04-30, 06:45
  3. j2me polish problem
    By jonneymendoza in forum Mobile Java General
    Replies: 2
    Last Post: 2007-03-09, 23:43
  4. 3410 losing key events
    By marcpalmer in forum Mobile Java General
    Replies: 4
    Last Post: 2003-09-30, 22:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×