Results 1 to 4 of 4

Thread: Layouts.

  1. #1

    Thread Starter
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    Resolved Layouts.

    I've got an applet with 3 jeditorpanes. I want one at the bottom, one taking up the most of the center, and one to the left. I've got them set up in the contentpane using the standard borderlayout, but I'm still new to this and don't know how to give them definite shape. Right now, they seem to form around any text entered, how do I give each editor pane a definite dimension?
    Last edited by Nove; Jun 17th, 2005 at 03:14 PM.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Layouts.

    Call their setPreferredSize() methods.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: Layouts.

    You could use setBounds(int x, int y, int width, int height);

    It's a hit or miss type deal, but you will eventually get the things the size and position you want them.

  4. #4

    Thread Starter
    Fanatic Member Nove's Avatar
    Join Date
    Jul 2004
    Posts
    736

    Re: Layouts.

    Thanks.

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