?? msface.java
字號:
import Src.MSFaceFrame;
import javax.swing.*;
import java.awt.*;
import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
public class MSFace
{ public static void main(String[] args)
{
//打開注釋可以改變觀感
/*JDialog.setDefaultLookAndFeelDecorated(true);
JFrame.setDefaultLookAndFeelDecorated(true);
Toolkit.getDefaultToolkit().setDynamicLayout(true);
System.setProperty("sun.awt.noerasebackground","true");
String laf ="com.sun.java.swing.plaf.motif.MotifLookAndFeel";
//String laf ="com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
//String laf ="javax.swing.plaf.metal";
try {
UIManager.setLookAndFeel(new WindowsLookAndFeel());
}
catch ( UnsupportedLookAndFeelException e ) {
System.out.println ("Metal Look & Feel not supported on this platform. \nProgram Terminated");
System.exit(0);
}catch (Exception exc) {
System.err.println("Error loading " + laf + ": " + exc);
}*/
JFrame frame = new MSFaceFrame();
frame.setVisible(true);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -