JPanels in Java


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: JPanels in Java

Hybrid View

  1. #1
    Diane Guest

    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.

    Thanks Diane

  2. #2
    MarkN Guest

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center