×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    10

    Add commands in canvas.

    I am using canvas and need to add gauge control in the same.but i am unable to add setItemStateListener(this) in the same.

    how can i add the same as well as an object of the Gauge in my canvas??

  2. #2
    Nokia Developer Champion
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Add commands in canvas.

    Again you cannot place High Level Items (like a Gauge) on a Low Level item like a Canvas...
    If you don't know what I'm talking about you might want to read about the basics of the MIDP platfrom and the low and high level graphics... That's knowledge you really need if you want to actually build anything graphically appealing...
    same is for the setStateListener() method...
    Do you know about Interfaces (that's what that method is part of, of an Interface), also you cannot just set anything as a listener, that "this" paramter you are passing MUST be of a specific type... A canvas is most probably not an object of that type, have you checked that ?

    I'm pretty sure you might want to invest a couple of hours to read and understand a tutorial like :
    http://www.ibm.com/developerworks/ed...a-j2me1-i.html

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    10

    Re: Add commands in canvas.

    okay. Thanks for your guidance.

Similar Threads

  1. Canvas and Canvas.FIRE
    By M.T._Pockets in forum Mobile Java Games
    Replies: 2
    Last Post: 2008-03-08, 21:43
  2. Can we add Canvas on Form.
    By atiqe in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2007-11-06, 17:11
  3. How to add a list on a Canvas??
    By Rodrigo82 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2006-11-23, 12:15
  4. Major problem with delegation to Canvas
    By bartekn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2003-10-08, 17:46
  5. 7650 and 3650 Canvas and FullCanvas memory
    By marcilgen in forum Mobile Java General
    Replies: 5
    Last Post: 2003-07-08, 12:24

Posting Permissions

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