📄 lookandfeel.java
字号:
/*
* LookandFeel.java
*
* Created on 2007年5月10日, 上午11:48
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package com.cn.szhaccp.landing;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.SwingUtilities;
import java.awt.Component;
public class LookandFeel {
public static void setLookandFeel(String lujing, Component c) {
try {
UIManager.setLookAndFeel(lujing);
SwingUtilities.updateComponentTreeUI(c);
} catch (UnsupportedLookAndFeelException ex) {
ex.printStackTrace();
} catch (ClassNotFoundException ex) {
ex.printStackTrace();
} catch (InstantiationException ex) {
ex.printStackTrace();
} catch (IllegalAccessException ex) {
ex.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -