You are looking for JComponent.scrollRectToVisible.
Scroll the controls over using JDesktopPane in Swing
-
06-03-2022 - |
Question
I have designed swing controls over JPanel using netbeans , now i want the control should scroll with the click on Jscrollbar or 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.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow