File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Jsplit pane and scroll pane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Jsplit pane and scroll pane" Watch "Jsplit pane and scroll pane" New topic

Jsplit pane and scroll pane

Aabha Varma

Joined: Jan 12, 2005
Posts: 22

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

Joined: Jun 10, 2005
Posts: 105
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.
I agree. Here's the link:
subject: Jsplit pane and scroll pane
It's not a secret anymore!