简体   繁体   English

Java Swing-创建类似JOptionPane的窗口

[英]Java Swing - Make a window like JOptionPane

I've been creating GUIs using Jigloo for a game and I've run into a problem. 我一直在使用Jigloo创建游戏的GUI ,但遇到了问题。

  1. I would like one of my GUIs to have some properties that the JOptionPane has but I don't know how to describe it properly. 我希望我的一个GUI具有JOptionPane所具有的一些属性,但是我不知道如何正确地描述它。
  2. The JOptionPane , when open, doesn't allow a user to access the other open windows. JOptionPane打开时,不允许用户访问其他打开的窗口。 It gives a ping sound and flash the JOptionPane window . gives a ping sound and flash the JOptionPane window
  3. Is there a name for that? 有这个名字吗? Also can I put that onto one of my GUI windows? 还可以将其放在我的GUI窗口之一上吗?

Thanks in advance 提前致谢

The JOptionPane uses a modal dialog. JOptionPane使用模式对话框。 See How to Use Modality in Dialogs for details. 有关详细信息,请参见如何在对话框中使用模态

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM