⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filehelp.java

📁 正在学习Java的人或许能从中得到自己想要的东西
💻 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 + -