dcsimg

Can I prevent the mouse from moving out of a Dialog or Frame?

John Zukowski

You can't. Standard Java provides no controls to limit where the mouse can go.