Here's what my program looks like so far:
Is there any way to make that gray title bar on the top transparent?
I tried setUndecorated()
but that completely removes the red/yellow/green window buttons and doesn't let me drag the window around.
Incase you don't understand what I'm asking, in Objective CI was able to make the titlebar transparent in this program:
You can use JFrame.setOpacity() and set a percentage from 0 to 1 to make the entire frame translucent. Then set the contents to opaque. More information here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.