I have three panels in my frame panel 1 will have the symbol(the symbol is on Right Hand Side) Panel 2 has one lable, two radio button and one file chooser button
panel 3 has a group of check box button
Now initially panel 3 is invisible, once the user selects one of the radio button(New User) from panel 2 it will be visible. if the user select other radio button (Profile user) the panel becomes invisible
My problem is that when i test my application, Panel 2 is takes the space of itself and panel 3, when i press one of the radio button panel 3 becomes visible and the frame looks good(as iwanted) but when the user press another button (profile user) the panel 3 is invisble, but once again panel 2 takes the entire place of frame and UI looks bad.
I am using NetBeans IDE ( so it takes GroupLayout by default)