View unanswered posts | View active topics It is currently Sat May 27, 2017 9:16 am

Reply to topic  [ 1 post ] 
 Buggy egx? 
Author Message

Joined: Wed Apr 13, 2011 8:07 pm
Posts: 5
Post Buggy egx?
egx doesn't seem to be working properly. For example
   public static final void main(String[] argv) {
        JPanel jp = new JPanel();
        jp.setPreferredSize(new Dimension(200, 100));
        jp.setLayout(new MigLayout("fillx, wrap 1, ins 0, debug", "[]", "[]10lp"));
        addButton(jp, "abc");
        addButton(jp, "abcdef");
        addButton(jp, "abcdefghi");, "TestMig1");

    private static void addButton(JPanel jp, String text) {
        JRadioButton jrb = new JRadioButton(text);
        jp.add(jrb, "egx");

gives the result in the attached picture. Clearly not aligned.

TestMig1.png [ 4.08 KiB | Viewed 16554 times ]
Mon Apr 25, 2011 2:39 am
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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.