Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create an unvisible area?  RSS feed

Zällä Feldmann
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,
I want to create an unvisible area, to detect a MouseEvent for example.
In the picture below you can see my wanted area, which should do something when I move my mouse into or out of this area.

I've tried to solve this problem with a normal Rectangle. The problem was, that the Nodes or Objects within the Rectangle were put above,
so the MouseEvent would be recalled every time I move my mouse on a Node. I also thought about calculating the mouse coordinates
but this way would be more expensive than realizing it with a specified area.

Do you know what I mean?
Thanks in advance and have a nice day.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!