Get the Middle of JScrollPane
How do you get the middle of the area being shown in a JScrollPane?Thanks!
You must calculate the x and y of center point, and use below program.JViewport jv = jScrollPane.getViewport();jv.setViewPosition(new Point(centerX, centerY));