Java Glass pane

对着背影说爱祢 提交于 2019-12-12 08:05:02

问题


I have a problem. I want to ask you how can I implement GlassPane to paint on it.

I mean, if I click mouse button, in mouseClicked event, my transparent glass pane should be created, because I want to see all my components behind glassPane and I can paint on it using mouseDragged event. When I release mouse button my glassPane disappears.

I have another question too. When I will paint on glass pane all my components behind them will be refreshing and repainting? Maybe somebody have nice example with glass pane which might help me.


回答1:


How to Create Translucent and Shaped Windows



来源:https://stackoverflow.com/questions/5960799/java-glass-pane

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