True Swing Transparency

Is it possible to make an aero frame in a java swing application?

+3
source share
2 answers

For Java 6 or later, using classes from import static java.awt.GraphicsDevice.WindowTranslucency. *;

Java 7 has added these two new methods for Swing.

JFrame.setUndecorated(boolean);//wont work if the frame is decorated
JFrame.setShape(someShape);//set frame shape
JFrame.setOpacity(somefloat);//set frame tranparency
0
source

Source: https://habr.com/ru/post/1747323/


All Articles