java - "Inline" list of checkboxes - auto line break -


i have jpanel (extended generaloptions class) implemented as:

public generaloptions() {     setlayout(new miglayout("", "[grow]", "[][][][]"));      jlabel lblwyzywienie = new jlabel("food");     add(lblwyzywienie, "cell 0 0");      jcheckbox chckbxhb = new jcheckbox("hb");     add(chckbxhb, "cell 0 1");     jcheckbox chckbxbb = new jcheckbox("bb");     add(chckbxbb, "cell 0 1,alignx trailing");     jcheckbox chckbxall = new jcheckbox("all inclusive");     add(chckbxall, "cell 0 1,alignx trailing");  } 

as can see, there list of checkboxes in 1 cell of miglayout. jpanel in placed left panel of splitpanel component, width resizable.

what want achieve force list of checkboxes act "inline" html list of checkboxes. means, should break line when width of panel not enough show them in single line.

now can't resize panel below width of whole list , if init width less list of checkboxes, of them hidden.

example html code http://jsfiddle.net/ can try resize right panel see i'm talking about.

take on following discussion: http://migcalendar.com/forums/viewtopic.php?f=8&t=2393

scroll down see code. implemented own layout manager want.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -