javaswingawtglasspane

Java Glass pane


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.


Solution

  • How to Create Translucent and Shaped Windows