What are the differences between JScrollBar and JScrollPane?
Asked
Active
Viewed 4,843 times
-1
-
I think you should be a little bit more specific in your question. – Marc-Andre Aug 16 '13 at 16:23
-
which part of their respective java doc didn't you understand? – kleopatra Aug 16 '13 at 17:19
-
It would be quicker for you to type your question in Google. – Luc M Aug 16 '13 at 18:25
1 Answers
7
This image is self-explainatory
The JViewport provides a window, or "viewport" onto a data source -- for example, a text file. That data source is the "scrollable client" (aka data model) displayed by the JViewport view. A JScrollPane basically consists of JScrollBars, a JViewport, and the wiring between them, as shown in the diagram at right.

nachokk
- 14,363
- 4
- 24
- 53