Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make a JFrame transparent

 
Alex Zhang
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excuse me, would anyone tell me if there is any method to make a JFrame or JWindow Component Transparent to display the underlying window desktop.
THX and regards.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All windows and it's subclasses like JFrame and JWindow can use the .hide() method of Window.
 
Alex Zhang
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be there is a misunderstanding, I mean transparent is, we just show the components such as button or table and the border of the JFrame or JWindow but not the background of the JFrame and Jwindow is the underlying content of the window desktop.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic