Only this time, you nest another container inside of the panel: a JScrollPane.
但是,这一次在这个面板中嵌套另一个容器:JScrollPane。
The JScrollPane component even comes with a pre-registered listener, so the pane will scroll when it has focus and the user moves the wheel.
JScrollPane组件甚至随预注册的侦听器一起提供,所以当这个组件获得焦点且用户移动鼠标滚轮时窗格将会滚动。
应用推荐