Add transparent JPanel upon AWT Component to paint on

假装没事ソ 提交于 2019-12-02 01:17:30

The Mixing Light and Heavyweight Components article explains how this is handled only in the most recent version of the JDK.

did you try a GlassPane since i think thats exactly it's use case. soemthing like JFrame.setGlassPane() if i remember correctly. check here:

Java API JFrame

GlassPane examples

I've searched for a heavyweightcomponent that could help me but I didn't found one, and regarding the internalframes I don't know how you managed to set the opacity to 50. All what I found about seetting the opacity wast the method setOpaque(boolean value) and this doesn't help me at all. Would you please explaine me how did you set that opacity. It's my final alternative either that or I'll have to change my entire project design.

Try running Stream and Drawing on separate thread. I think this can help

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