简体   繁体   中英

How to make a JFrame Transparent?

I have been working on a screen recorder app in Java.

I need to know ho to create a JFrame fully transparent?

Like this.

在此处输入图片说明

You can make a JFrame partially transparent using the frame.setOpacity(float opacity) method.

For more information, see the Java Tutorial on the subject .

Caution: If you make if the frame 100% transparent, users won't be able to see it.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM