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

freeseawind.lf.basic.optionpane.LuckOptionPaneUIBundle Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
package freeseawind.lf.basic.optionpane;

import javax.swing.UIDefaults;
import javax.swing.UIManager;

import freeseawind.lf.cfg.LuckResourceBundle;

/**
 * OptionPaneUI资源绑定类
 * 
 * @author freeseawind@github
 * @version 1.0
 * 
 */
public class LuckOptionPaneUIBundle extends LuckResourceBundle
{
    /**
     * 问题图标属性key
     */
    public static final String QUESTION_ICON = "OptionPane.questionIcon";
    
    /**
     * 警告图标属性key
     */
    public static final String WARNING_ICON = "OptionPane.warningIcon";
    
    /**
     * 信息图标属性key
     */
    public static final String INFORMATION_ICON = "OptionPane.informationIcon";
    
    /**
     * 错误图标属性key
     */
    public static final String ERROR_ICON = "OptionPane.errorIcon";

    @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