Originally posted by koh khai huat:
calling some API to disable the user Input with out using the Jframe....
Try this:
System.out.println("HEY USER: DON'T TOUCH THE MOUSE OR KEYBOARD! THANKS!");
Seriously, though: if you don't have a window, then you're not going to get any mouse input anyway. As Michael says, if you're trying to lock the screen for the whole desktop, then you're not going to be able to do that from pure Java (at least without, one way or another, throwing up a window.)