2

Possible Duplicate:
How to make a JFrame Modal in Swing java

How to make JFrame to be modal?

Please don't suggest to use JDialog. The question is about JFrame. How to make modal namely it?

4

1 回答 1

4

要制作 JFrame 模态,您必须自己编写代码,将 setEnable(false) 设置为主窗口(您从那里打开新的 JFrame)。当用户退出 Jframe 时使其 setEnable(true)

br

于 2012-09-24T15:43:37.687 回答