×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    12

    j2me canvas scrollbar

    please how can i create a scrollbar in a j2me canvas

  2. #2
    Nokia Developer Expert
    Join Date
    May 2012
    Posts
    224

    Re: j2me canvas scrollbar

    Hi elvis10ten and Welcome to Nokia Developer Discussion Boards,

    Canvas doesn't have scrollbars, but you can create by your own.

    see example how to create vertical scrollbar. In this example scrollbar is used for ScrollableMessageBox based on CustomItem. same way you can use for canvas. see paint() and drawScrollBar() methods in the example for more info.

  3. #3
    Registered User
    Join Date
    Aug 2012
    Posts
    12

    Re: j2me canvas scrollbar

    Thanks. But i do not understand the code. Please i need an explanation of how it works please.

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,073

    Re: j2me canvas scrollbar

    Quote Originally Posted by elvis10ten View Post
    please how can i create a scrollbar in a j2me canvas
    I would suggest to use LWUIT and its list component already has scrollbar, so implementation will be easy.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

Similar Threads

  1. Return from virtual keyboard canvas to main canvas in j2me
    By Meena ganesan in forum Mobile Java General
    Replies: 2
    Last Post: 2011-04-15, 13:55
  2. How to create scrollbar in Canvas
    By elenora in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2011-04-01, 14:41
  3. J2ME Canvas help
    By tmf81 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2009-08-24, 08:20
  4. add scrollbar to canvas image
    By Pepper_91 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2009-03-23, 04:48
  5. J2ME canvas
    By HasithaRandika in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2009-01-27, 08:11

Posting Permissions

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