Hi

I am trying to create a JPanel that has dynamically added JCheckBox's.
The original design used FlowLayout manager (the default). This was OK
to start with as there was only a handful of JCheckBox required,
resizing the JFrame and likewise the JPanel enabled more columns of
JCheckBox's across the screen. The problem now is the requirements
have changed and I now need to have a lot more JCheckBox's. I tried
adding a JScrollPane but this has meant the JCheckBox's are all in one
row with only a horizontal scroll bar, what I really want is to have
the columns of JCheckBox's which can be resized (1,2,3,n columns wide
depending on size of JPanel) and only a vertical scrollbar.

I have tried the GridLayout but this is not flexible enough as the
scroll bars appear for both horizontal and vertical as the amount of
columns are set at design time.

Do I have to create my own Layout Manager or Scoll Pane or both?

Any help would be greatfully received

Craig

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to