 <p>You can use GridBagLayout in netBeans . this layout is stable way for complex form and panel . </p> <p><a href="https://netbeans.org/kb/docs/java/gbcustomizer-basic.html" rel="nofollow">tutorial for Netbeans</a> </p>