?? uiswitchlistener.java
字號:
import java.awt.*;import java.beans.*;import java.awt.event.*;import javax.swing.*;import javax.swing.event.*;/** * This class listens for UISwitches, and updates a given component. * * @version 1.4 04/23/99 * @author Steve Wilson */public class UISwitchListener implements PropertyChangeListener { JComponent componentToSwitch; public UISwitchListener(JComponent c) { componentToSwitch = c; } public void propertyChange(PropertyChangeEvent e) { String name = e.getPropertyName(); if (name.equals("lookAndFeel")) { SwingUtilities.updateComponentTreeUI(componentToSwitch); componentToSwitch.invalidate(); componentToSwitch.validate(); componentToSwitch.repaint(); } }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -