In my program am using 2 panels.. panel1 is for show the menus & panel2 for display corresponding form for that menu click.. both r added to contentpane.. when am mouse over a menu button that time only i want to open that menu panel on panel2..
so am setting componentZOrder to both panels in menu button's mouseEntered event.. also am given logoff option.. before logoff its working fine.. once am logoff & login again then its showing error when am clicking menu like 'java.lang.IllegalArgumentException: component and container should be in the same top-level window' & the panel2 is not opening...??
i dont have idea abt it
how to solve this problem..?