How to code multiple lines of checkboxes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JavaCoder999
    New Member
    • Mar 2008
    • 1

    How to code multiple lines of checkboxes

    I need to create a GUI for a seating plan and I plan on using several rows of checkboxes to create a layout.

    The only problem is that I don't know how to code these checkboxes over several rows.

    Also I need to generate this checkbox layout from a prespecified number of checkboxes for each row. So I need to create some sort of loop that will continue creating checkboxes on that row until all the checkboxes are created, then move onto the next row.

    Hope that makes sense and many thanks for your help.
  • BigDaddyLH
    Recognized Expert Top Contributor
    • Dec 2007
    • 1216

    #2
    First, if you are using Swing correctly, you need to choose the right layout manager:

    This Swing Java Tutorial describes developing graphical user interfaces (GUIs) for applications and applets using Swing components

    Comment

    Working...