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,
posted 10 years ago
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.