Transparent Window

荒凉一梦 提交于 2019-12-11 10:25:18

问题


I have a fullscreen JFrame. I added a map to JPanel then added it to JFrame. Now I want to add a transparent window to JFrame. I want to see all map and I want to move transparent window.

I did it with internal frame but I couldn't it's title tranparent.

Could you help me about this?

Thanks ...


回答1:


One possible way is to add a JPanel to the glasspane.




回答2:


Does com.sun.awt.AWTUtilities.setWi­ndowOpacity(this, 0.3f); work? (although it's not an officially supported API, natch). Regardless, there's an article on this here.




回答3:


http://techgearup.wordpress.com/2008/09/19/transparent-jframe-background/

This might help... as a starting point, at least.




回答4:


If you´r having truble finding it on google it could be because you'll have to google "Translucent"

http://java.sun.com/developer/technicalArticles/GUI/translucent_shaped_windows/



来源:https://stackoverflow.com/questions/7941635/transparent-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!