Package com.jgoodies.forms.factories

Examples of com.jgoodies.forms.factories.ComponentFactory2


     *
     * @since 1.3
     */
    public final JLabel addROLabel(String textWithMnemonic, CellConstraints constraints) {
        ComponentFactory factory = getComponentFactory();
        ComponentFactory2 factory2;
        if (factory instanceof ComponentFactory2) {
            factory2 = (ComponentFactory2) factory;
        } else {
            factory2 = DefaultComponentFactory.getInstance();
        }
        JLabel label = factory2.createReadOnlyLabel(textWithMnemonic);
        add(label, constraints);
        return label;
    }
View Full Code Here


     *
     * @since 1.3
     */
    public final JLabel addROLabel(String textWithMnemonic, CellConstraints constraints) {
        ComponentFactory factory = getComponentFactory();
        ComponentFactory2 factory2;
        if (factory instanceof ComponentFactory2) {
            factory2 = (ComponentFactory2) factory;
        } else {
            factory2 = DefaultComponentFactory.getInstance();
        }
        JLabel label = factory2.createReadOnlyLabel(textWithMnemonic);
        add(label, constraints);
        return label;
    }
View Full Code Here

TOP

Related Classes of com.jgoodies.forms.factories.ComponentFactory2

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.