Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User matifk's Avatar
    Join Date
    May 2008
    Posts
    10
    HI!

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

  2. #2
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Sure! Have you tried with the classic keyPressed() method?

    Pit

  3. #3
    Registered User matifk's Avatar
    Join Date
    May 2008
    Posts
    10
    Key pressed method works only By extending Canvas but i am using midlets and J2ME Polish ...

  4. #4
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    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 markdude's Avatar
    Join Date
    Feb 2005
    Posts
    1
    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 jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    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 prakash.raman's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai
    Posts
    539
    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 jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    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 C++
    Replies: 3
    Last Post: 2008-04-07, 14:19
  2. How to Simulate Key Events in PyS60?
    By changhyp in forum Python
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved