Hello,
I've kept on experimenting with grouplayout that there seems to be some problems with baseline layouting. It's most obvious on linux but other platforms suffer as well, see the following screenshots:
Linux: http://screencast.com/t/NTQ3MjU1YWYt
mac: http://screencast.com/t/YzhhODg4Y2Et
(I don't have immediate access to a windows machine)
please note that using the same layout in swing/netbeans produces significantly better result
swing mac: http://screencast.com/t/NWFiOGI5ZWQ
is this a known bug? any workaround? already fixed?
Thank you
Milos Kleint
here is the layout code snippet (same in all above mentioned cases)
GroupLayout gl_container = new GroupLayout(container);
gl_container.setHorizontalGroup(
gl_container.createParallelGroup(GroupLayout.LEADING)
.add(gl_container.createSequentialGroup()
.addContainerGap()
.add(label)
.addPreferredGap(LayoutStyle.RELATED)
.add(text)
.add(423))
);
gl_container.setVerticalGroup(
gl_container.createParallelGroup(GroupLayout.LEADING)
.add(gl_container.createSequentialGroup()
.addContainerGap()
.add(gl_container.createParallelGroup(GroupLayout.BASELINE)
.add(label)
.add(text, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
.addContainerGap(256, Short.MAX_VALUE))
);