<legend id='pwA2q'><style id='pwA2q'><dir id='pwA2q'><q id='pwA2q'></q></dir></style></legend>
    1. <tfoot id='pwA2q'></tfoot>
      <i id='pwA2q'><tr id='pwA2q'><dt id='pwA2q'><q id='pwA2q'><span id='pwA2q'><b id='pwA2q'><form id='pwA2q'><ins id='pwA2q'></ins><ul id='pwA2q'></ul><sub id='pwA2q'></sub></form><legend id='pwA2q'></legend><bdo id='pwA2q'><pre id='pwA2q'><center id='pwA2q'></center></pre></bdo></b><th id='pwA2q'></th></span></q></dt></tr></i><div id='pwA2q'><tfoot id='pwA2q'></tfoot><dl id='pwA2q'><fieldset id='pwA2q'></fieldset></dl></div>

      <small id='pwA2q'></small><noframes id='pwA2q'>

        • <bdo id='pwA2q'></bdo><ul id='pwA2q'></ul>

      1. 打开新的 JFrame 时禁用 JFrame

        Disable JFrame when a new JFrame is opened(打开新的 JFrame 时禁用 JFrame)
          <tbody id='ezOTL'></tbody>

        <small id='ezOTL'></small><noframes id='ezOTL'>

          <legend id='ezOTL'><style id='ezOTL'><dir id='ezOTL'><q id='ezOTL'></q></dir></style></legend>
          1. <i id='ezOTL'><tr id='ezOTL'><dt id='ezOTL'><q id='ezOTL'><span id='ezOTL'><b id='ezOTL'><form id='ezOTL'><ins id='ezOTL'></ins><ul id='ezOTL'></ul><sub id='ezOTL'></sub></form><legend id='ezOTL'></legend><bdo id='ezOTL'><pre id='ezOTL'><center id='ezOTL'></center></pre></bdo></b><th id='ezOTL'></th></span></q></dt></tr></i><div id='ezOTL'><tfoot id='ezOTL'></tfoot><dl id='ezOTL'><fieldset id='ezOTL'></fieldset></dl></div>

              <tfoot id='ezOTL'></tfoot>
                <bdo id='ezOTL'></bdo><ul id='ezOTL'></ul>

                • 本文介绍了打开新的 JFrame 时禁用 JFrame的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我试图在弹出新框架时禁用主"JFrame.我想要它,这样您就不能在该框架上单击或拖动任何东西.我尝试将新框架设为 JDialog,但这并没有禁用其他框架.我还查看了关于此的另一篇文章,其中建议将其设为 JDialog 但它仍然不起作用.我真的需要帮助来做这件事.谢谢.这是我用来制作JDialog的codeIi,他们有什么问题吗?

                  I am trying to disable the "main" JFrame when the new frame pops up. I want it so you can not click or drag anything on that frame. I tried making the new frame a JDialog, but that did not disable the other frame. I also looked at the other post about this, which suggested to make it a JDialog but it still does not work. I really need help doing this please. thanks. This is the codeIi am using to make the JDialog, is their any problems with it?

                  editDialog=new JDialog(IntroScreen.frame);
                  

                  IntroScreen.frame 代表主"框架.

                  推荐答案

                  你已经为 JDialog#setModal 或 JDialog#ModalityTypes,可能与 Dialog.ModalityType APPLICATION_MODAL

                  You have set for JDialog#setModal or JDialog#ModalityTypes, maybe with Dialog.ModalityType APPLICATION_MODAL

                  这篇关于打开新的 JFrame 时禁用 JFrame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Compiling C++ for the JVM(为 JVM 编译 C++)
                  Compile to java bytecode (without using Java)(编译成java字节码(不使用Java))
                  How to drive C#, C++ or Java compiler to compute 1+2+3+...+1000 at compile time?(如何在编译时驱动 C#、C++ 或 Java 编译器计算 1+2+3+...+1000?)
                  Java ClassLoader: load same class twice(Java ClassLoader:两次加载相同的类)
                  How to debug .class files in ECLIPSE?(如何在 ECLIPSE 中调试 .class 文件?)
                  Java quot;The blank final field may not have been initializedquot; Anonymous Interface vs Lambda Expression(Java“可能尚未初始化空白的最终字段匿名接口与 Lambda 表达式)

                    <tbody id='dBrOK'></tbody>
                    <bdo id='dBrOK'></bdo><ul id='dBrOK'></ul>
                    <legend id='dBrOK'><style id='dBrOK'><dir id='dBrOK'><q id='dBrOK'></q></dir></style></legend>
                    <tfoot id='dBrOK'></tfoot>

                      • <small id='dBrOK'></small><noframes id='dBrOK'>

                          <i id='dBrOK'><tr id='dBrOK'><dt id='dBrOK'><q id='dBrOK'><span id='dBrOK'><b id='dBrOK'><form id='dBrOK'><ins id='dBrOK'></ins><ul id='dBrOK'></ul><sub id='dBrOK'></sub></form><legend id='dBrOK'></legend><bdo id='dBrOK'><pre id='dBrOK'><center id='dBrOK'></center></pre></bdo></b><th id='dBrOK'></th></span></q></dt></tr></i><div id='dBrOK'><tfoot id='dBrOK'></tfoot><dl id='dBrOK'><fieldset id='dBrOK'></fieldset></dl></div>