<legend id='Aixcj'><style id='Aixcj'><dir id='Aixcj'><q id='Aixcj'></q></dir></style></legend>
      <bdo id='Aixcj'></bdo><ul id='Aixcj'></ul>

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

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

      2. JScrollPane 的滚动事件

        Scroll Event of a JScrollPane(JScrollPane 的滚动事件)
          <tbody id='M3ndN'></tbody>
      3. <legend id='M3ndN'><style id='M3ndN'><dir id='M3ndN'><q id='M3ndN'></q></dir></style></legend>

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

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

            <tfoot id='M3ndN'></tfoot>

            • <bdo id='M3ndN'></bdo><ul id='M3ndN'></ul>
                  本文介绍了JScrollPane 的滚动事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  奇怪的是 JScrollPane 没有方法 addAdjustmentListener().然而,adjustmentListener 据说是与滚动条一起使用的.每当 JScrollPane 以任何一种方式滚动时,我都希望发生一些事情.如何实现这样的事情?

                  It's strange that JScrollPane doesn't have a method addAdjustmentListener(). Yet adjustmentListener is said to be used with scrollbars. I want something to happen whenever the JScrollPane is scrolled in either way. How to achieve such a thing?

                  推荐答案

                  为什么不获取实际的滚动条,然后向它们添加调整侦听器?JScrollBar 有一个名为 addAdjustmentListener() 的方法.

                  Why don't you get the actual scrollbars, and then add adjustment listeners to them? JScrollBar has a method called addAdjustmentListener().

                  您可以使用 getVerticalScrollBar()getHorizontalScrollBar()JScrollPane 中获取 JScrollBar

                  And you can use getVerticalScrollBar() and getHorizontalScrollBar() to get a JScrollBar from a JScrollPane

                  这篇关于JScrollPane 的滚动事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
                        <tbody id='4WypV'></tbody>

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

                      <tfoot id='4WypV'></tfoot>
                        • <bdo id='4WypV'></bdo><ul id='4WypV'></ul>

                          <legend id='4WypV'><style id='4WypV'><dir id='4WypV'><q id='4WypV'></q></dir></style></legend>
                          1. <small id='4WypV'></small><noframes id='4WypV'>