Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2012

    Component alignment in J2ME


    Im using lwuit for creating UI components. My requirement is to center align a checkbox. Using,
    checkbox.setAlignment(CheckBox.CENTER) only aligns text of that checkbox. But, I need to align complete component.
    How can I achieve this using LWUIT??

  2. #2
    Nokia Developer Expert
    Join Date
    May 2012

    Re: Component alignment in J2ME

    Hi harsha921,

    com.sun.lwuit.layouts.Layout package might help you. see com.sun.lwuit.layouts.GroupLayout and com.sun.lwuit.layouts.BorderLayout classes.

    also see this example http://java.sun.com/developer/techni...e/lwuit_intro/

Similar Threads

  1. j2me camera alignment
    By asifsanli in forum Mobile Java General
    Replies: 0
    Last Post: 2010-12-07, 11:49
  2. Is there a j2me table component or package ??
    By ahmed abdelaziz in forum Mobile Java Media (Graphics & Sounds)
    Replies: 9
    Last Post: 2010-09-23, 07:58
  3. Does anyone know a j2me table component ??
    By ahmed abdelaziz in forum Mobile Java General
    Replies: 10
    Last Post: 2010-09-13, 11:03
  4. J2me Chart Component in Canvas
    By fabiofaccin in forum Mobile Java General
    Replies: 8
    Last Post: 2009-11-15, 15:14
  5. Custom tab component for j2ME ?
    By tanc08 in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2006-08-15, 01:01

Posting Permissions

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