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

freeseawind.lf.basic.text.LuckTextBorder Maven / Gradle / Ivy

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