• Post Reply Bookmark Topic Watch Topic
  • New Topic

Card Pane transperent  RSS feed

 
siddhu Math
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i do have a cardpanel and on that pane i have two panes i want one of the two pane to be transparent how can i achieve this.

thanks in advance
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say card pane I presume you are using the card layout.
Typically you add panels to display the various "tab" components. To make these panels transperant, call panel.setOpaque(false).

Any reason why you are not using the JTabbedPane?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!