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.