I want to create UI for my program with netbeans but I don\'t know how to create a UI that when user change the size of program window( maximize or other sizes ) component of th
Learn about nesting JPanels each with its own simple layout to in effect nest layout managers and create complex layouts.
Probably avoid usingGridBagLayout early on when learning to use layout managers and use the more simple ones if possible. Consider using MiGLayout if you need a complex gridbag-like layout and nesting of simple layouts doesn't solve the problem.
If stuck, post an image of your desired GUI layout and your latest code attempt, and we'll be able to give you more specific advice.