Package com.ardor3d.extension.ui

Examples of com.ardor3d.extension.ui.UIRadioButton


        centerPanel.add(check1);
        final UICheckBox check2 = new UICheckBox("World");
        centerPanel.add(check2);

        final ButtonGroup group = new ButtonGroup();
        final UIRadioButton radio1 = new UIRadioButton();
        radio1.setButtonText("option [i]A[/i]", true);
        radio1.setGroup(group);
        centerPanel.add(radio1);
        final UIRadioButton radio2 = new UIRadioButton();
        radio2.setButtonText("option [c=#f00]B[/c]", true);
        radio2.setGroup(group);
        centerPanel.add(radio2);

        final UISlider slider = new UISlider(Orientation.Horizontal, 0, 12, 0);
        slider.setSnapToValues(true);
        slider.setMinimumContentWidth(100);
View Full Code Here


        ballsLabel.setLayoutData(new AnchorLayoutData(Alignment.TOP_LEFT, collide, Alignment.BOTTOM_LEFT, 0, -15));
        _configFrame.getContentPanel().add(ballsLabel);

        final ButtonGroup ballsGroup = new ButtonGroup();

        final UIRadioButton balls16 = new UIRadioButton("16");
        balls16.setLayoutData(new AnchorLayoutData(Alignment.LEFT, ballsLabel, Alignment.RIGHT, 5, 0));
        balls16.setSelectable(true);
        balls16.setSelected(true);
        balls16.addActionListener(new ActionListener() {
            public void actionPerformed(final ActionEvent event) {
                resetBalls(16);
            }
        });
        balls16.setGroup(ballsGroup);
        _configFrame.getContentPanel().add(balls16);

        final UIRadioButton balls32 = new UIRadioButton("32");
        balls32.setLayoutData(new AnchorLayoutData(Alignment.TOP_LEFT, balls16, Alignment.BOTTOM_LEFT, 0, -5));
        balls32.setSelectable(true);
        balls32.setSelected(true);
        balls32.addActionListener(new ActionListener() {
            public void actionPerformed(final ActionEvent event) {
                resetBalls(32);
            }
        });
        balls32.setGroup(ballsGroup);
        _configFrame.getContentPanel().add(balls32);

        final UIRadioButton balls64 = new UIRadioButton("64");
        balls64.setLayoutData(new AnchorLayoutData(Alignment.TOP_LEFT, balls32, Alignment.BOTTOM_LEFT, 0, -5));
        balls64.setSelectable(true);
        balls64.setSelected(true);
        balls64.addActionListener(new ActionListener() {
            public void actionPerformed(final ActionEvent event) {
                resetBalls(64);
            }
        });
        balls64.setGroup(ballsGroup);
        _configFrame.getContentPanel().add(balls64);

        final UIRadioButton balls128 = new UIRadioButton("128");
        balls128.setLayoutData(new AnchorLayoutData(Alignment.TOP_LEFT, balls64, Alignment.BOTTOM_LEFT, 0, -5));
        balls128.setSelectable(true);
        balls128.setSelected(true);
        balls128.addActionListener(new ActionListener() {
            public void actionPerformed(final ActionEvent event) {
                resetBalls(128);
            }
        });
        balls128.setGroup(ballsGroup);
        _configFrame.getContentPanel().add(balls128);

        _configFrame.layout();
    }
View Full Code Here

        centerPanel.add(check1);
        final UICheckBox check2 = new UICheckBox("World");
        centerPanel.add(check2);

        final ButtonGroup group = new ButtonGroup();
        final UIRadioButton radio1 = new UIRadioButton();
        radio1.setButtonText("option [i]A[/i]", true);
        radio1.setGroup(group);
        centerPanel.add(radio1);
        final UIRadioButton radio2 = new UIRadioButton();
        radio2.setButtonText("option [c=#f00]B[/c]", true);
        radio2.setGroup(group);
        centerPanel.add(radio2);

        final UISlider slider = new UISlider(Orientation.Horizontal, 0, 12, 0);
        slider.setSnapToValues(true);
        slider.setMinimumContentWidth(100);
View Full Code Here

TOP

Related Classes of com.ardor3d.extension.ui.UIRadioButton

Copyright © 2018 www.massapicom. 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.