The following Java code will lock the desktop when launched on Windows XP, but it will not lock the desktop when launched on Vista or Windows 7. I would appreciate it if someone could show me how to make this work in Vista and Windows 7 using only Java.
import java.awt.AWTException; import java.awt.Robot; import java.awt.event.KeyEvent; public class Roboto {
sja26 source share