|
-
Jun 17th, 2005, 12:13 AM
#1
Thread Starter
Fanatic Member
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.
-
Jun 17th, 2005, 11:48 AM
#2
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.
-
Jun 17th, 2005, 02:16 PM
#3
Frenzied Member
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.
-
Jun 17th, 2005, 03:13 PM
#4
Thread Starter
Fanatic Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|