×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    35

    how to scroll an image vertically and horizontally both in LWUIT

    Hi all,

    Can you tell me how to scroll an image vertically and horizontally both. and how to stop an image at the bottom.

    borderLayout = new GridLayout(1, 1);
    setLayout(borderLayout);
    setScrollable();
    setScrollableX(true);
    setScrollableY(true);


    i am making a form scrollable and then creating a label.


    lblFloorPlan = new Label();
    lblFloorPlan.setFocusable(true);
    lblFloorPlan.setAlignment(Label.CENTER);


    then adding this label on to form


    temp = byteArraytoImage(data);
    if (temp != null) {
    lblFloorPlan.setIcon(temp);
    }
    addComponent(lblFloorPlan);



    but image is only scrolling up down and on just one click whole image is coming down.

    left and right click are also making the image to scroll top to bottom.

    can anybody tell how to make it possible scroll up, down, left, right.................

    Its needed urgently

    thanks
    manish

  2. #2
    Registered User
    Join Date
    Jun 2009
    Posts
    35

    Re: how to scroll an image vertically and horizontally both in LWUIT

    Hi
    i have tried the following link too but it did not help:

    http://lwuit.blogspot.com/2008/07/mo...gone-wild.html

    thanks
    manish

Similar Threads

  1. LWUIT Scroll
    By HasithaRandika in forum Mobile Java General
    Replies: 1
    Last Post: 2011-06-02, 17:02
  2. Vertically flip an image
    By polys in forum Mobile Java General
    Replies: 20
    Last Post: 2010-04-14, 09:24
  3. Is there any api to Scroll text horizontally ???
    By abhinash2009 in forum Symbian User Interface
    Replies: 3
    Last Post: 2009-06-11, 10:19
  4. How to Scroll text horizontally in a listbox cell
    By lfd in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-06-07, 13:16
  5. how to scroll horizontally ....the full screen
    By priya83 in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-10-07, 07:42

Posting Permissions

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