Suraj Air
Suraj Air

Reputation: 2113

Can I create a layer like on websites using Java Swing?

I want to create a layer in Java Swing which will be displayed when I move my mouse over a specific region on editor pane.

Upvotes: 1

Views: 270

Answers (2)

Eugene Ryzhikov
Eugene Ryzhikov

Reputation: 17369

The simplest solutution is to use a JXLayer framework

Upvotes: 2

Maurice Perry
Maurice Perry

Reputation: 32831

Yes, You must create a Component to draw whatever it is you want to show, and set it as the glasspane of a frame. I have created a loupe this way. For more information, see here.

Upvotes: 2

Related Questions