📄 jframewithid.java
字号:
// Figure 15.3import javax.swing.JFrame;/** This class is a version of JFrame that maintains its own ID number. */public class JFrameWithID extends JFrame { private static int totalJFrameCount = 0; private int ID; public JFrameWithID( String s ) { super(s + " -- #" + (totalJFrameCount+1)); totalJFrameCount++; ID = totalJFrameCount; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -