在Swing中使用JDesktopPane滚动控件

时间:2013-02-01 11:04:03

标签: java swing scroll jscrollpane jdesktoppane

我使用netbeans设计了JPanel上的摇摆控件,现在我希望控件应该在点击Jscrollbar或JSlider时滚动

Suppose i have four buttons on the jpanel from then they should appear one by one from  
right to left while clicking on the jscrollbar or jslider.

1 个答案:

答案 0 :(得分:1)

您正在寻找JComponent.scrollRectToVisible