![JAR search and dependency download from the Maven repository](/logo.png)
freeseawind.lf.basic.optionpane.LuckOptionPaneUIBundle 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.optionpane;
import javax.swing.UIDefaults;
import javax.swing.UIManager;
import freeseawind.lf.cfg.LuckResourceBundle;
/**
* OptionPaneUI资源绑定类。
*
* A OptionPaneUI resource bundle class.
*
* @author freeseawind@github
* @version 1.0
*
*/
public class LuckOptionPaneUIBundle extends LuckResourceBundle
{
/**
* 问题图标属性key
*
* OptionPane question Icon properties.
*/
public static final String QUESTION_ICON = "OptionPane.questionIcon";
/**
* 警告图标属性key
*
* OptionPane warning Icon properties.
*/
public static final String WARNING_ICON = "OptionPane.warningIcon";
/**
* 信息图标属性key
*
* OptionPane information Icon properties.
*/
public static final String INFORMATION_ICON = "OptionPane.informationIcon";
/**
* 错误图标属性key
*
* OptionPane error Icon properties.
*/
public static final String ERROR_ICON = "OptionPane.errorIcon";
public void uninitialize()
{
UIManager.put(QUESTION_ICON, null);
UIManager.put(WARNING_ICON, null);
UIManager.put(INFORMATION_ICON, null);
UIManager.put(ERROR_ICON, null);
}
@Override
protected void loadImages(UIDefaults table)
{
UIManager.put(QUESTION_ICON, getIconRes("optionpane/question.png"));
UIManager.put(WARNING_ICON, getIconRes("optionpane/warn.png"));
UIManager.put(INFORMATION_ICON, getIconRes("optionpane/info.png"));
UIManager.put(ERROR_ICON, getIconRes("optionpane/error.png"));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy