Click to See Complete Forum and Search --> : JPanels in Java


Diane
02-23-2003, 12:36 AM
Hi, I am taking a Java course and I can't figure out how to take an existing
Panel and add panels to it. I understand how to use the borderlayout function,
but need to create a panel in the WEST Border area, Horziontally. ie. a
Text Area on the farthest left side, and then a set of checkboxes in a single
row. I have the checkboxes lined up and can get a Text area to appear, but
not to the left of the checkboxes.

Thanks Diane

MarkN
02-24-2003, 08:25 AM
You can use another layout manager. One possibility would be the grid.

If you think components and parts then you will be better able to solve this.
For example build a panel that displays the checkboxes and test it out.
Then add that component to another, and so on.



"Diane" <java.@127.0.0.1> wrote:
>
>Hi, I am taking a Java course and I can't figure out how to take an existing
>Panel and add panels to it. I understand how to use the borderlayout function,
>but need to create a panel in the WEST Border area, Horziontally. ie. a
>Text Area on the farthest left side, and then a set of checkboxes in a single
>row. I have the checkboxes lined up and can get a Text area to appear,
but
>not to the left of the checkboxes.
>
>Thanks Diane