View unanswered posts | View active topics It is currently Thu Mar 30, 2017 5:30 pm



Reply to topic  [ 1 post ] 
 Equivalent to GridBagLayout 
Author Message

Joined: Wed Dec 28, 2011 1:17 am
Posts: 1
Post Equivalent to GridBagLayout
Hello,
I am trying to propose Miglayout to my company (300 pers.) because I am convinced by :)
I have decided to challenge it by developping an existing "complex" panel using GridBagLayout.

My problem I have some differences using miglayout. Here are the 2 kinds of layouts I have to reproduce:

Col 0 or 2
Code:
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = row;
gridBagConstraints.weightx = 1.0D;
gridBagConstraints.anchor = GridBagConstraints.NORTHWEST;
gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
gridBagConstraints.insets = new Insets(6,6,0,6);


and col 1 or 3

Code:
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = row;
gridBagConstraints.anchor = GridBagConstraints.NORTHWEST;
gridBagConstraints.fill = GridBagConstraints.NONE;
gridBagConstraints.insets = new Insets(6,6,0,6);


Using
Code:
MigLayout migLayout = new MigLayout("fillx, wrap 4, insets 6 6 0 6","fill, grow","grow");
does not reproduce the same.

Looking at attached file, I expect col 1 and 3 (in yellow no to be resized) and col 0 or 3 to grow.
Thanks for any help


Attachments:
ok.png
ok.png [ 9.16 KiB | Viewed 22371 times ]
failed.png
failed.png [ 8.85 KiB | Viewed 22371 times ]
Wed Dec 28, 2011 1:26 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.