This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes how to add image to a scrollbar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to add image to a scrollbar" Watch "how to add image to a scrollbar" New topic
Author

how to add image to a scrollbar

prabhat gupta
Greenhorn

Joined: Aug 21, 2001
Posts: 26
I want to display big images such as wallpapers of sizes greater than the size of the window in which they are viewed in scrollbars so that image is scrollable for viewing.
Wilfried LAURENT
Ranch Hand

Joined: Jul 13, 2001
Posts: 269
Have a look at
http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.html
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to add image to a scrollbar