Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor yatin.frankline's Avatar
    Join Date
    Mar 2010
    Location
    Ahemdabad
    Posts
    80
    Hello everyone

    i want to put canvas in LWUIT Form , i want to draw graph on canvas.
    how can i show canvas in Lwuit form?
    please help me ?

  2. #2
    Nokia Developer Champion im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    You need to put Canvas in LWUIT form, just overwrite the paint method of the LWUIT form itself to draw graph on it.

    thanks,
    ~Amitabh

  3. #3
    Regular Contributor yatin.frankline's Avatar
    Join Date
    Mar 2010
    Location
    Ahemdabad
    Posts
    80
    can you give me some code help?

  4. #4
    Regular Contributor yatin.frankline's Avatar
    Join Date
    Mar 2010
    Location
    Ahemdabad
    Posts
    80
    Quote Originally Posted by im2amit View Post
    You need to put Canvas in LWUIT form, just overwrite the paint method of the LWUIT form itself to draw graph on it.

    thanks,
    ~Amitabh
    can you give me some code help?

  5. #5
    Nokia Developer Champion im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    Sorry, I dont have ready codelet for it.
    But can give you a pointer to it.

    In LWUIT, ref to API guide, paint method of com.sun.lwuit.Form

    If you know the logic of painting the graph on pure J2me Canvas, use the same logic and override the paint method in your LWUIT form class where you want the graph to be displayed.

    thanks,
    ~Amitabh
    PS: LWUIT form provided will the facility of override almost all the methods which is uses from native Canvas.

  6. #6
    Regular Contributor yatin.frankline's Avatar
    Join Date
    Mar 2010
    Location
    Ahemdabad
    Posts
    80
    Hello everyone

    i get the solution for drawing line.string,rectangle etc... on from ,but not using canvas ,just check this forums post:-http://discussion.forum.nokia.com/fo...d.php?t=197031

    Thanks and Regards

Similar Threads

  1. Appending a string to a form
    By phil_mw60 in forum Mobile Java General
    Replies: 5
    Last Post: 2010-03-10, 14:57
  2. LWUIT 1.3 : bad form refresh
    By frasene in forum Mobile Java Tools & SDKs
    Replies: 7
    Last Post: 2010-02-06, 18:54
  3. Replies: 2
    Last Post: 2009-03-18, 08:44
  4. Navigation from Canvas to Form
    By danish79 in forum Mobile Java General
    Replies: 10
    Last Post: 2006-09-12, 07:07
  5. Is possible to use canvas and Form at a time
    By lakshmanraob in forum Mobile Java General
    Replies: 1
    Last Post: 2005-10-01, 23:52

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