×

Discussion Board

Results 1 to 3 of 3

Thread: text area width

  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    46

    Thumbs up text area width

    now i am using lwuit 1.4.

    i used multiple textboxes in with box layout inside the form.
    in my simulator everything ok. but when i use my code in nokia E-70 text area width does not end with screen.
    how to increase text area width?

    for ex,
    if i want to display "this is a large text area" in one line means it print like this,
    this is
    a large
    text area

    i want to display it is in one line. my code is,

    f7 = new Form("Public Notice")
    {
    protected void onShowCompleted() {
    super.onShowCompleted();
    invalidate();
    }
    };
    f7.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
    f7.getTitleStyle().setBgColor(0xff8c00);
    f7.getTitleStyle().setFgColor(0xf0ffff);
    Style menuStyle = new Style();
    menuStyle.setBgColor(0xff8c00);
    menuStyle.setFgColor(0xf0ffff);
    f7.setMenuStyle(menuStyle);
    pl4 = new Label("Public Notice");
    pl4.getStyle().setBgTransparency(0);
    pta4 = new TextArea(2,10);
    pta4.setText("Public in General, Film Producers, Overseas Film Distributors, and the further notice.");
    pta4.setBorderPainted(false);
    pta4.getStyle().setBorder(Border.createEmpty(), false);
    pta4.setGrowByContent(true);
    pta4.setFocusable(false);
    pta4.setEditable(false);
    policyBackCommand = new Command(" Back");
    f7.addCommand(policyBackCommand);
    f7.setCommandListener(this);
    f7.addComponent(pl4);
    f7.addComponent(pta4);

    f7.show();

  2. #2
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: text area width

    new TextArea(2,10);

    means you need a text area with 2 rows and 10 colums - if you need more width increase the no of column to 20 or more...
    Thanks,
    Ekta

  3. #3
    Registered User
    Join Date
    Aug 2010
    Posts
    46

    Re: text area width

    i set new TextArea(2,30);
    now also same problem.......

Similar Threads

  1. Dialog Text Width
    By david4x in forum Symbian User Interface
    Replies: 0
    Last Post: 2009-05-29, 12:25
  2. Replies: 2
    Last Post: 2008-11-02, 18:42
  3. Width of SVG text element?
    By eagerb in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2007-10-05, 10:46
  4. Text size: height e width
    By oper6600 in forum Symbian
    Replies: 3
    Last Post: 2007-01-29, 09:30
  5. Dynamically change the width/height of text editor
    By jainygaurav in forum Symbian
    Replies: 3
    Last Post: 2006-09-27, 11:36

Posting Permissions

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