?? greenmetaltheme.java
字號:
package lookandfeel; import javax.swing.plaf.*;import javax.swing.plaf.metal.*;import javax.swing.*;import javax.swing.border.*;import java.awt.*;/** * This class describes a theme using "green" colors. * * @version 1.4 04/23/99 * @author Steve Wilson */public class GreenMetalTheme extends DefaultMetalTheme { public String getName() { return "Emerald"; } // greenish colors private final ColorUIResource primary1 = new ColorUIResource(51, 102, 51); private final ColorUIResource primary2 = new ColorUIResource(102, 153, 102); private final ColorUIResource primary3 = new ColorUIResource(153, 204, 153); protected ColorUIResource getPrimary1() { return primary1; } protected ColorUIResource getPrimary2() { return primary2; } protected ColorUIResource getPrimary3() { return primary3; } }
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -