Currently I am developing an application where I have a menubar with menuitems.
Customer Create New
Vehicle Add New
now for this application I have a jFrame(This is the main container of my application) and have 5 jPanel corresponding to every menuitem i.e. CreateNewCustomerPanel, EditCustomerPanel, ViewCustomerPanel etc
and what try to achieve is on click of the menuitem want to show the corresponding panel. so for that following is my code
Now when I run my application and click on "Create New" menuitem nothing is being shown but if I minimize the application and maximize it again it'll show me the new jPanel i.e. createCustomer. It should load at the time of menuitem click.
Can any one please help to solve this that how can I manage to open createNewCustomerPanel on the first time click on the button only.