×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Dec 2009
    Location
    Ghaziabad
    Posts
    244

    Question LWUIT Table Scrolling

    How would i scroll the LWUIT Table in Y direction. What the thing is going on right now is . I have a form in which i have used table. This table is scrolled when focussed. But when it goes beyond the screen size. Table not scroll even form also not getting scrolled. When it covers all the rows in a form(within the screen size).

    Please Reply.
    Regards
    Rajan Verma

  2. #2
    Registered User
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    38

    Re: LWUIT Table Scrolling

    hi rajan701v,
    try to take table in container hope this work properly.

    Thanks,
    Arvind

  3. #3
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: LWUIT Table Scrolling

    Quote Originally Posted by rajan701v View Post
    How would i scroll the LWUIT Table in Y direction. What the thing is going on right now is . I have a form in which i have used table. This table is scrolled when focussed. But when it goes beyond the screen size. Table not scroll even form also not getting scrolled. When it covers all the rows in a form(within the screen size).

    Please Reply.
    Also use the methods available for setting the scrolling as ON/OFF.Read the LWUIT docs for more information.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  4. #4
    Registered User
    Join Date
    Mar 2011
    Posts
    1

    Smile Re: LWUIT Table Scrolling

    Quote Originally Posted by rajan701v View Post
    How would i scroll the LWUIT Table in Y direction. What the thing is going on right now is . I have a form in which i have used table. This table is scrolled when focussed. But when it goes beyond the screen size. Table not scroll even form also not getting scrolled. When it covers all the rows in a form(within the screen size).

    Please Reply.
    If i am not wrong the table is by default automatically can scroll to both x and y. Check maybe your item is to few, try to add more row.

    But if it's not work. You can custom class table like this:

    Code:
    public class customTable extends Table
    {
    public customTable(TableModel model)
    {
            super(model);
            ((Container)this).setScrollableX(true);
            ((Container)this).setScrollableY(true);
    }
    
    public Component createCell(Object value, int row, int column)
     {      	
             Component cmp = null;
             cmp = super.createCell(value, row, column);
    }
    }
    Regards.

Similar Threads

  1. Dynamic table in Lwuit
    By ingsaurabh in forum Mobile Java General
    Replies: 6
    Last Post: 2011-02-26, 14:36
  2. Form not scrolling in Lwuit
    By gaurav.gupta in forum Mobile Java General
    Replies: 1
    Last Post: 2010-08-29, 15:51
  3. lwuit scrolling
    By m-lamaa in forum Mobile Java General
    Replies: 3
    Last Post: 2010-05-27, 15:43
  4. Scrolling
    By Shweta.Hegde in forum Symbian
    Replies: 1
    Last Post: 2009-03-05, 10:34
  5. scrolling
    By meghaarya in forum Mobile Java General
    Replies: 1
    Last Post: 2008-03-12, 04:28

Posting Permissions

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