Height of JPanel in SplitPane can only get bigger?

Hi,
I've got a JPanel in the bottom part of a JSplitPane. In the PaintComponent I use the height of the panel in some calculations (to make sure what i want to draw stays visible). So I take the height of the JPanel (getHeight). When I change the dividerlocation by hand, the height of the JPanel does get bigger, but when I move it in the other direction, it doesn't get smaller again. I am confused.
How is that possible? And any ideas to get the "real" size ("real" being the size of what i can see in the splitpane)?
Regards,
Ren�

If you right click on the image on the page in the context menu select photo box alignment and then select one of scale to fit {centered, Left-aligned, Right-aligned}
That should do what you are loking for.

Similar Messages

Maybe you are looking for

  • Multiple iPhone backups in Time Machine

    I have my wife's iPhone and she was charging it on our Mac via cable. Our iTunes is instructed not to sync automatically. We have two phones in iTunes. Child comes along and somehow resets or wipes phone: not sure which one. My question is, if I were

  • Sending email with 2 attachments in PDF Format

    Hi, I have 2 ALV Layouts, totally different in Structure. Now I need to convert these 2 ALV layout to 2 different PDF files and send email with thses 2 attachments. Can anyone provide me with sample report. I tried searching  for it  but there is no

  • Color coding events within a single calendar

    I need to color code different types of definable events within a single calendar, a feature I have with my old Now Up to Date calendar, but I'm trying to switch over to the Apple calendar.   I understand different calendars will themselves show up a

  • What is command design pattern? what is the problem that it solves?

    Hi i have been reading few articles on command design pattern but was unable to understand what it is and what problem does it solve. As far as my understanding goes if there is a pre specified method in an object that could execute and perform the n

  • Taking a long time to import photo(graph)s especially only for new ones...

    Hello. iPhoto '11 takes a long time to import from a Sony digital camera has thousands of photo(graphs). Most of them were already imported, but why does it need to rescan all of them to import the new ones (e.g., 250 of them)? Is the only way to ski