简体   繁体   English

Java:滚动JScrollPane

[英]Java : Scroll Over JScrollPane

I've got a vertically scrolling JPanel, on that JPanel are a couple of JScrollPanes, when the user scrolls down through the panel, if the users mouse goes over the JScrollPane they are no longer able to scroll the JPanel, the have to move their mouse off the JScrollPane and back onto the panel. 我有一个垂直滚动的JPanel,JPanel上有几个JScrollPanes,当用户向下滚动面板时,如果用户鼠标越过JScrollPane他们不再能够滚动JPanel,则必须移动他们的鼠标关闭JScrollPane并返回到面板。 It gets quite annoying after a while. 一段时间后,它变得非常烦人。

To this end is there any way to tell java to continue scrolling the parent JPanel unless the user clicks on the child JScrollPane and specifically tries to scroll it? 为此,有没有办法告诉java继续滚动父JPanel,除非用户点击子JScrollPane并特意尝试滚动它? 在此输入图像描述

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

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