📄 filehelp.java
字号:
import javax.swing.*;
public class FileHelp extends HelpWindow {
String message, title;
int icon;
JFrame frame;
public FileHelp(JFrame f) {
mesg = "Select to open a file";
title ="File button help";
icon = JOptionPane.DEFAULT_OPTION ;
frame = f;
}
public void sendToChain(JComponent c) {
if (c instanceof JButton) {
JButton b = (JButton)c;
if( b.getText().equals("File"))
JOptionPane.showMessageDialog(frame, mesg, title, icon);
else
sendChain(c);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -