All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alee.skin.web.resources.formattedtextfield.xml Maven / Gradle / Ivy

Go to download

WebLaf is a Java Swing Look and Feel and extended components library for cross-platform applications

There is a newer version: 2.2.1
Show newest version
<skin>

    <!-- com.alee.laf.text.WebFormattedTextField -->

    <!-- Formatted text field -->
    <style type="formattedtextfield" padding="2">
        <component>
            <opaque>false</opaque>
            <foreground>black</foreground>
            <selectedTextColor>black</selectedTextColor>
            <selectionColor>210,210,210</selectionColor>
            <caretColor>gray</caretColor>
        </component>
        <painter>
            <inputPromptHorizontalPosition>10</inputPromptHorizontalPosition>
            <inputPromptVerticalPosition>1</inputPromptVerticalPosition>
            <inputPromptForeground>160,160,160</inputPromptForeground>
            <inputPromptOnlyWhenEditable>true</inputPromptOnlyWhenEditable>
            <hideInputPromptOnFocus>false</hideInputPromptOnFocus>
            <decorations>
                <decoration>
                    <WebShape round="2" />
                    <WebShadow type="outer" width="2" />
                    <LineBorder color="170,170,170" />
                    <ColorBackground color="white" />
                </decoration>
                <decoration states="focused">
                    <LineBorder color="85,130,190" />
                </decoration>
                <decoration states="disabled">
                    <WebShadow type="outer" opacity="0" />
                    <LineBorder color="lightGray" />
                </decoration>
            </decorations>
        </painter>
    </style>

    <!-- Formatted text field undecorated -->
    <style type="formattedtextfield" id="undecorated">
        <painter>
            <decorations>
                <decoration visible="false" />
            </decorations>
        </painter>
    </style>

    <!-- Formatted text field without focus decoration -->
    <style type="formattedtextfield" id="nofocus">
        <painter>
            <decorations>
                <decoration states="focused">
                    <LineBorder color="170,170,170" />
                </decoration>
            </decorations>
        </painter>
    </style>

</skin>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy