Java Glass Panel

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

I mean, if I click the mouse button in the mouseClicked event, my transparent glass panel must be created because I want to see all my components behind the GlassPane , and I can draw it using the mouseDragged event. When I release the mouse button, my GlassPane disappears.

I also have another question. When I paint on glass, will all of my components behind them be refreshed and repainted? Maybe someone has a good example with glass glass that could help me.

+6
source share

Source: https://habr.com/ru/post/887796/


All Articles