Package com.alee.laf.text

Examples of com.alee.laf.text.WebTextFieldUI


    public static void installFieldUI ( final JFormattedTextField field, final JSpinner spinner )
    {
        field.setMargin ( new Insets ( 0, 0, 0, 0 ) );
        field.setBorder ( BorderFactory.createEmptyBorder ( 0, 0, 0, 0 ) );
        final WebTextFieldUI textFieldUI = new WebTextFieldUI ();
        textFieldUI.setDrawBorder ( false );
        field.setUI ( textFieldUI );
        field.setOpaque ( true );
        field.setBackground ( Color.WHITE );
        field.addFocusListener ( new FocusAdapter ()
        {
View Full Code Here


            ( ( JComponent ) e ).setOpaque ( false );
        }
        if ( e instanceof JTextField )
        {
            final JTextField textField = ( JTextField ) e;
            final WebTextFieldUI textFieldUI = new WebTextFieldUI ();
            textFieldUI.setDrawBorder ( false );
            textField.setUI ( textFieldUI );
            textField.setMargin ( new Insets ( 0, 1, 0, 1 ) );
        }
        return editor;
    }
View Full Code Here

TOP

Related Classes of com.alee.laf.text.WebTextFieldUI

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.