When we launch an application which has certain Window Form’s, we might maximize/restore the window umpteen times. What if, on resizing that Window, some component gets relocated in an awkward position, disturbing the GUI.
Well, there lies a solution to this problem, just open the JFrame Form in NetBeans IDE, goto Design View and right-click the Form to get a Context Menu with a Menu Item mentioned above.
Now, I present to you certain screenshots that would enable you to solve this problem once in for all.
![]() |
![]() |
![]() |
![]() |
![]() |
As you can see the location of JProgressbar, its located below JTextArea, so what I want whenever Window is resized, the space on the left and right sides should remain same.
![]() |
Similarly, all the components can be adjusted in a similar fashion, however just keep in mind one thing, that you should see the location of the component and its adjacent one’s too. Then, make suitable modifications.
Hope this helps, if it does, do comment on this post. Thanks for reading It.
eNjoy Technology…..
| opened-jframe-form.jpg | ![]() |
192823 bytes |
| preview-design.jpg | ![]() |
193939 bytes |
| preview-final.jpg | ![]() |
156705 bytes |
| resized-jframe.jpg | ![]() |
147251 bytes |
| resizing-components.jpg | ![]() |
209612 bytes |
| resizing-window.jpg | ![]() |
224661 bytes |