File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes add ScrollBars To JScrollPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "add ScrollBars To JScrollPane" Watch "add ScrollBars To JScrollPane" New topic
Author

add ScrollBars To JScrollPane

khushi jain
Greenhorn

Joined: Jul 05, 2004
Posts: 3
hi ,
i am using JScrollPane, which is added to the JSplitPane .
and in the Constructoe of JScrollPane adding Component, i want scrollbars to the right hand side but it is not showing that. and each time the size of the JScorllPane gets reduced. coz of that i cant see the complete view of component.
so pls help me how to add scrollbars to display the complete component view.

following is a code---->

Component c = delegate.getRootComponent();

m_BookScrollPane= new JScrollPane (c,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS ,JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);

m_splitPane.setRightComponent(m_BookScrollPane);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: add ScrollBars To JScrollPane