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
Thanks,
sjehan
-sjehan
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
posted
0
> please guide how buttons can be appear directly with out roll over of mouse
post your code
Nageswar Kakolla
Ranch Hand
Joined: Jan 16, 2006
Posts: 71
posted
0
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 ?
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.