?? basicpanelui.java
字號(hào):
/* * @(#)BasicPanelUI.java 1.11 03/12/19 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package javax.swing.plaf.basic;import java.awt.*;import javax.swing.*;import javax.swing.border.*;import javax.swing.plaf.*;import java.awt.*;import java.awt.event.*;/** * BasicPanel implementation * * @version 1.11 12/19/03 * @author Steve Wilson */public class BasicPanelUI extends PanelUI { // Shared UI object private static PanelUI panelUI; public static ComponentUI createUI(JComponent c) { if(panelUI == null) { panelUI = new BasicPanelUI(); } return panelUI; } public void installUI(JComponent c) { JPanel p = (JPanel)c; super.installUI(p); installDefaults(p); } public void uninstallUI(JComponent c) { JPanel p = (JPanel)c; uninstallDefaults(p); super.uninstallUI(c); } protected void installDefaults(JPanel p) { LookAndFeel.installColorsAndFont(p, "Panel.background", "Panel.foreground", "Panel.font"); LookAndFeel.installBorder(p,"Panel.border"); LookAndFeel.installProperty(p, "opaque", Boolean.TRUE); } protected void uninstallDefaults(JPanel p) { LookAndFeel.uninstallBorder(p); }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -