Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User harsha921's Avatar
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    60
    Hi,

    I have a form(scrollableY(false) which contains a container1 with scrollableY(true);
    Everything works fine upto here. My requirement is to have a checkbox list in that form. what i did is:-

    Container container2 = new Container(new BoxLayout(BoxLayout.Y_AXIS));
    container2.setFocusable(true);
    container2.setScrollableY(true);
    container2.setPreferredH(Screenheight / 3);
    cb = new CheckBox[8];
    for (int i = 0; i < area_cb.length; i++) {
    cb[i] = new CheckBox("Test"+i);
    cb[i].addActionListener(this);
    container2.addComponent(cb[i]);
    }

    container1.addComponent(container2);

    With the above code only 4 components are visible and the checkboxes are not been focused. It is working only if i remove container2.setPreferredH(Screenheight / 3); from above code, but i need the container height to be fixed.
    I am using LWUIT 1.4 framework for UI.
    Regards,
    Harsha

  2. #2
    Nokia Developer Expert bandarap's Avatar
    Join Date
    May 2012
    Posts
    222
    Hi harsha921,

    which phone or mobile OS targeting your application? Symbian or S40?

    For Symbian, why can't you use LWUIT 1.5 available in oracle site. http://www.oracle.com/technetwork/ja...uit/index.html
    For S40, use LWUIT binaries for S40 available here. https://projects.developer.nokia.com..._for_Series_40

  3. #3
    Registered User harsha921's Avatar
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    60
    Hi,

    Well, my app is for all the java enabled mobiles.
    Regards,
    Harsha

Similar Threads

  1. How to scroll a text in the Container which is in a label
    By Manish_Bansal in forum Mobile Java General
    Replies: 3
    Last Post: 2010-06-26, 15:20
  2. how to scroll container to show all controls in it?
    By raj8nokiaforum in forum Symbian C++
    Replies: 0
    Last Post: 2009-08-19, 13:48
  3. Container with scroll problem??
    By sunil304047 in forum Symbian C++
    Replies: 5
    Last Post: 2009-06-23, 13:07
  4. Create scroll bar on container
    By vineet.jain in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-04-25, 09:28
  5. container with scroll
    By younker in forum Symbian C++
    Replies: 4
    Last Post: 2007-06-06, 09:20

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