This method returns the vertical scrollbar object in the JScrollPane component of Java Swing. AdjustmentListener: This is the interface extends EventListener. This interface is used to receive generated adjustment events for the scrollbar.