Package org.jsurveylib.gui.swing.util

Examples of org.jsurveylib.gui.swing.util.Bag.inset()


        if (!type.getLeftLabel().equals("")) {
            JLabel label = new JLabel(type.getLeftLabel());
            label.setHorizontalAlignment(JLabel.CENTER);
            answerPanel.add(label, bag.WEST().inset(0, 0, 0, 12));
            bag.inset(0);
        }

        JPanel itemPane = new JPanel(new GridLayout(rows, cols, 6, 6));
        for (Choice choice : type.getChoices()) {
            JRadioButton button = new JRadioButton(choice.getLabel());
View Full Code Here


        if (!type.getRightLabel().equals("")) {
            JLabel label = new JLabel(type.getRightLabel());
            label.setHorizontalAlignment(JLabel.CENTER);
            answerPanel.add(label, bag.nextX().inset(0, 12, 0, 0));
            bag.inset(0);
        }

        answerPanel.add(validationLabel, bag.nextX().inset(0, SPACE_BEFORE_VALIDATION, 0, 0));
        updateRenderer();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.