I am working in Swings and have a problem. I have a Main panel on which i have added a button and set a image on that buttons. on main panel i add different panels having buttons on them. i have set panels Opaque to false but when programe excutes only image which is in main panel appear and other panels with button not appear. when i roll over the mouse then buttons appears. please guide how buttons can be appear directly with out roll over of mouse
Joined: Jun 09, 2003
> please guide how buttons can be appear directly with out roll over of mouse
post your code
Joined: Jan 16, 2006
specify which Layout you are using and before you add any subpanels to Mainpanel, JPanel.setLayout(new BorderLayout()); or any layout.
Also check when you are add subpanel to main panel, is it correctly ?