File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPanel

 
Shahjehan Tariq
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

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
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> please guide how buttons can be appear directly with out roll over of mouse

post your code
 
Nageswar Kakolla
Ranch Hand
Posts: 71
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic