Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsplit pane and scroll pane

 
Aabha Varma
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have added a split pane to my frame.
Split panes left component contains a scrollpane, to which i have added a panel.And to this panel i am adding an image.
And to the right another panel.

if i chagne the split slider, i wanted the image to occupy the space provided. how to do that.

When i zoom in i increase the size of image.. and also the panel on which it is drawn,, But scroll bars are not comming..

So how to go abt it

Thanks in advance,
 
hatim osman
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi...
I am not sure I got this right, note that the ScrollPane repects the minimum and maximum size. If you set the minimum size of the panle that contains the image, then the divider cannot be dragged past that size.
I am wondering why do you want to change the size of the panel when you zoom in??? if you do so then you don't need a ScollPane, which is supposed to be the object responisble for showing diff views of the component.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic