Java Glass pane
Asked Answered
D

1

6

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.

Disfeature answered 11/5, 2011 at 7:37 Comment(0)
S
8

How to Create Translucent and Shaped Windows

Sclerodermatous answered 11/5, 2011 at 7:42 Comment(3)
second link is very helpfull. Thx a lotDisfeature
New address for the first link: docs.oracle.com/javase/tutorial/uiswing/misc/…Earley
Is there a new address for the second link as well? Unfortunately the code examples are not available anymore.Clevelandclevenger

© 2022 - 2024 — McMap. All rights reserved.