Locking my cursor in a JToggleButton

A

AJ

I am trying to develop the following functionality. When a user
selects a JToggleButton, I don't want their cursor to be able to leave
the bounds of the JToggleButton until they deselect the JToggleButton.
Is this possible?

Thanks!

AJ
 
A

AJ

This seems like a really simple concept, there is no way in Java to do
this? The closest thing I found was processMouseEvent, which
unfortunately, is a protected method. Any other hacks that would
work?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top