![JAR search and dependency download from the Maven repository](/logo.png)
freeseawind.lf.basic.text.LuckTextBorder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of littleluck Show documentation
Show all versions of littleluck Show documentation
Java Swing cross platform LookAndFeel
The newest version!
package freeseawind.lf.basic.text;
import java.awt.Component;
import java.awt.Insets;
import javax.swing.JTextField;
import freeseawind.lf.border.LuckBorderField;
import freeseawind.lf.border.LuckShapeBorder;
/**
* 文本控件焦点边框实现类。
*
* A Text controller focus border implement class.
*
* @author freeseawind@github
* @version 1.0
*/
public class LuckTextBorder extends LuckShapeBorder
{
private static final long serialVersionUID = 152864944146484889L;
public LuckTextBorder(Insets i)
{
super(i);
}
@Override
public LuckBorderField getBorderField(Component c)
{
if (c instanceof JTextField)
{
JTextField textField = (JTextField) c;
if (textField.getUI() instanceof LuckBorderField)
{
return (LuckBorderField) textField.getUI();
}
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy