If you are using the NetBeans IDE to develop your project, you can set the point(s) to which your objects are anchored and then set which direction you want them to automatically resize.

Now, I...