Package com.jgoodies.forms.util

Examples of com.jgoodies.forms.util.DefaultUnitConverter


    /**
     * Checks that users can set a custom font for use in
     * the DefaultUnitConverter.
     */
    public void testSetDefaultDialogFont() {
        DefaultUnitConverter duc = DefaultUnitConverter.getInstance();
        Font customFont = new Font("Serif", Font.PLAIN, 16);
        duc.setDefaultDialogFont(customFont);
    }
View Full Code Here


    /**
     * Checks that users can set a custom string for testing
     * the average character width in the DefaultUnitConverter.
     */
    public void testSetAverageCharacterWidthTestString() {
        DefaultUnitConverter duc = DefaultUnitConverter.getInstance();
        String customString = "Einen Vorsprung im Leben hat, " +
                              "wer da anpackt, " +
                              "wo die anderen erst einmal reden.";
        duc.setAverageCharacterWidthTestString(customString);
    }
View Full Code Here

TOP

Related Classes of com.jgoodies.forms.util.DefaultUnitConverter

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.