This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jframe and jpanel background  RSS feed

 
Maha Hassan
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to add a background to my jpanel (or to a jframe)
i tried a solution posted on the forum which was to put a labele with iconImage on a panel and add another panel above the first panel and set the second opaque property to false and it worked

but i want a way to have a backgound without adding MORE panels or unnessesary labels!!
and without using the paint and repaint methods
any ideas!!!
thanks for help
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!