![JAR search and dependency download from the Maven repository](/logo.png)
freeseawind.lf.basic.text.LuckTextUIBundle 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.Insets;
import javax.swing.UIDefaults;
import freeseawind.lf.cfg.LuckResourceBundle;
/**
* 文本相关资源绑定类。
*
* A TextUI resource bundle class.
*
* @author freeseawind@github
* @version 1.0
*
*/
public class LuckTextUIBundle extends LuckResourceBundle
{
/**
* TextField边框属性。
*
* TextField border properties.
*/
public static final String TEXTFIELD_BORDER = "TextField.border";
/**
* PasswordField边框属性。
*
* PasswordField border properties.
*/
public static final String PASSWORDFIELD_BORDER = "PasswordField.border";
/**
* FormattedTextField边框属性。
*
* FormattedTextField border properties.
*/
public static final String FORMATTEDTEXTFIELD_BORDER = "FormattedTextField.border";
/**
* TextArea边框属性。
*
* TextArea border properties.
*/
public static final String TEXTAREA_BORDER = "TextArea.border";
/**
* TextPane边框属性。
*
* TextPane border properties.
*/
public static final String TEXTPANE_BORDER = "TextPane.border";
/**
* EditorPane边框属性。
*
* EditorPane border properties.
*/
public static final String EDITORPANE_BORDER = "EditorPane.border";
@Override
protected void installBorder(UIDefaults table)
{
Insets insets = new Insets(4, 5, 4, 5);
LuckTextBorder normalBorder = new LuckTextBorder(insets);
table.put(TEXTFIELD_BORDER, normalBorder);
table.put(PASSWORDFIELD_BORDER, normalBorder);
table.put(FORMATTEDTEXTFIELD_BORDER, normalBorder);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy