Results 1 to 2 of 2

Thread: TextField Alignment??

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    18

    TextField Alignment??

    TextField radField; // radius TextField declared

    public void init()
    {
    radField = new TextField(15);
    add(radField);
    add (new Label ("centimetres"));
    radField.addActionListener (this);
    } // radius TextField added to the applet

    Ok this is my TextField. It's fine, it does the job.... but it appears at the top of the applet and i haven't been able to work out how to move it?

    How do you specify where the TextField goes? However i've arranged my code it always appears at the top of the applet?

    Pyra

  2. #2
    Addicted Member
    Join Date
    Oct 2005
    Posts
    167

    Re: TextField Alignment??

    Try to use Layout Manager to arrange your component like TextField, Button, Lable, etc. in your Applet.

Posting Permissions

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



Click Here to Expand Forum to Full Width