我使用setWindowOpacity方法可以让JFrame呈现半透明状态,但是其附着在上面的组件也呈半透明,怎样让组件不透明?我这里有个帖子,但是我翻译不好,谁能告诉我这个帖子实现的具体细节。
http://java.sun.com/developer/technicalArticles/GUI/translucent_shaped_windows/#Enabling-Per-Pixel-Translucency
http://java.sun.com/developer/technicalArticles/GUI/translucent_shaped_windows/#Enabling-Per-Pixel-Translucency
com.sun.awt.AWTUtilities.setWindowOpacity(this, 0.8f);// 透明化JFrame