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

📄 e890. determining if the approve or cancel button was clicked in a jfilechooser dialog.txt

📁 这里面包含了一百多个JAVA源文件
💻 TXT
字号:
 JFileChooser chooser = new JFileChooser();
    
    // Show the dialog; wait until dialog is closed
    int result = chooser.showOpenDialog(frame);
    
    // Determine which button was clicked to close the dialog
    switch (result) {
      case JFileChooser.APPROVE_OPTION:
        // Approve (Open or Save) was clicked
        break;
      case JFileChooser.CANCEL_OPTION:
        // Cancel or the close-dialog icon was clicked
        break;
      case JFileChooser.ERROR_OPTION:
        // The selection process did not complete successfully
        break;
    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -