View unanswered posts | View active topics It is currently Mon May 01, 2017 1:31 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
Code:
   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");
        JUtil.show(jp, "TestMig1");
    }

    private static void addButton(JPanel jp, String text) {
        JRadioButton jrb = new JRadioButton(text);
        jrb.setHorizontalTextPosition(SwingConstants.LEFT);
        jrb.setVerticalTextPosition(SwingConstants.CENTER);
        jp.add(jrb, "egx");
    }

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


Attachments:
TestMig1.png
TestMig1.png [ 4.08 KiB | Viewed 16492 times ]
Mon Apr 25, 2011 2:39 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.