If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

JPanels in Java

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.

Re: JPanels in Java

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