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

📄 e608. preventing a window from gaining the focus.txt

📁 这里面包含了一百多个JAVA源文件
💻 TXT
字号:
If Window.setFocusableWindowState(false) is called on a window, neither the window nor any of its children components can gain the focus. However, components like buttons can still invoke actions. 
On some platforms, if the non-focusable window is the only window visible in the application, the non-focusable window will gain the focus. However, none of the children components will gain the focus. 

    
frame.setFocusableWindowState(false);

⌨️ 快捷键说明

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