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

freeseawind.lf.cfg.LuckGlobalBundle Maven / Gradle / Ivy

The newest version!
package freeseawind.lf.cfg;

import java.awt.Color;

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

/**
 * 

全局资源绑定类

* *

Global resource bundle.

* * @author freeseawind@github * @version 1.0 * */ public class LuckGlobalBundle extends LuckResourceBundle { /** *

[LittleLuck属性]窗体默认图标。

* *

[LittLeLuck Attributes] Default window icon properties.

*/ public static final String APPLICATION_ICON = "Application.icon"; /** *

[LittleLuck属性]窗体默认标题。

* *

[LittLeLuck Attributes] Default window title properties.

*/ public static final String APPLICATION_TITLE = "Application.title"; /** *

[LittleLuck属性]窗体透明颜色。

* *

[LittLeLuck Attributes] Translucent color properties.

*/ public static final String TRANSLUCENT_COLOR = "translucent.color"; /** *

[LittleLuck属性]面板背景颜色属性key。

* *

* [LittLeLuck Attributes] Panel background color properties. *

*/ public static final String PANEL_BACKGROUND = "Panel.background"; /** *

* [LittleLuck属性]颜色选择器背景颜色属性key。 *

* *

* [LittLeLuck Attributes] ColorChooser background color properties. *

*/ public static final String COLORCHOOSERUI_BACKGROUND = "ColorChooserUI.background"; public void uninitialize() { UIManager.put(TRANSLUCENT_COLOR, null); UIManager.put(APPLICATION_ICON, null); UIManager.put(APPLICATION_TITLE, null); } @Override protected void installColor(UIDefaults table) { table.put(TRANSLUCENT_COLOR, getColorRes(0, 0, 0, 0)); } @Override protected void loadImages(UIDefaults table) { table.put(APPLICATION_ICON, getIconRes("frame/default_frame_icon.png")); } @Override protected void installOther(UIDefaults table) { table.put(APPLICATION_TITLE, ""); table.put(PANEL_BACKGROUND, getColorRes(Color.WHITE)); table.put(COLORCHOOSERUI_BACKGROUND, getColorRes(Color.WHITE)); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy