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

com.alee.laf.text.PasswordFieldPainter Maven / Gradle / Ivy

package com.alee.laf.text;

import com.alee.managers.language.LM;
import com.alee.painter.decoration.IDecoration;

import javax.swing.*;
import java.awt.*;

/**
 * Basic painter for {@link JPasswordField} component.
 * It is used as {@link WPasswordFieldUI} default painter.
 *
 * @param  component type
 * @param  component UI type
 * @param  decoration type
 * @author Alexandr Zernov
 */
public class PasswordFieldPainter>
        extends AbstractTextFieldPainter implements IPasswordFieldPainter, SwingConstants
{
    @Override
    public String getInputPrompt ()
    {
        return LM.get ( ui.getInputPrompt () );
    }

    @Override
    public Component getLeadingComponent ()
    {
        return ui.getLeadingComponent ();
    }

    @Override
    public Component getTrailingComponent ()
    {
        return ui.getTrailingComponent ();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy