?? jxframe.java
字號:
package ch10.section08;
import java.awt.event.*;
import javax.swing.*;
public class JxFrame
extends JFrame {
public JxFrame(String title) {
super(title);
setCloseClick();
setLF();
}
private void setCloseClick() {
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
}
private void setLF() {
String laf = UIManager.getSystemLookAndFeelClassName();
try {
UIManager.setLookAndFeel(laf);
}
catch (UnsupportedLookAndFeelException exc) {
System.err.println("Warning: UnsupportedLookAndFeel: " + laf);
}
catch (Exception exc) {
System.err.println("Error loading " + laf + ": " + exc);
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -