posted 14 years ago
I am trying to resize a picture and scrollpane when a user imports an image into the program. However, when I call the setSize methods, the size of the image remains unchanged. I've tried using maximum size and minimum size, as well as calling revalidate methods, but the size of the picture remains the default size when the program begins. What am I doing wrong here? (Also, this isn't the finished code. I am simply concerned with getting these sizes to change at runtime.)