Package javax.swing.plaf.basic.BasicOptionPaneUI

Examples of javax.swing.plaf.basic.BasicOptionPaneUI.ButtonAreaLayout


        Object option1 = new JRadioButton("Tarara");
        Object option2 = new Integer(100);
        Object option3 = "Eminem must tsum menimE";
        Object option4 = new Button("Tarara");
        Container buttonArea = new JPanel();
        buttonArea.setLayout(new ButtonAreaLayout(true, 6));
        paneUI.addButtonComponents(buttonArea, new Object[] { option1, option2, option3,
                option4 }, 0);
        assertEquals("number of buttons", 4, buttonArea.getComponentCount());
        assertEquals("button class", JRadioButton.class, buttonArea.getComponent(0).getClass());
        assertEquals("button text", "Tarara", ((JRadioButton) (buttonArea.getComponent(0)))
View Full Code Here

TOP

Related Classes of javax.swing.plaf.basic.BasicOptionPaneUI.ButtonAreaLayout

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.