Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

add ScrollBars To JScrollPane  RSS feed

 
khushi jain
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!