• Post Reply Bookmark Topic Watch Topic
  • New Topic

swing application  RSS feed

 
Tom Rader
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am developing a small swing application. When user click on the button it should lock the screen of my windows machine.

Thanks,

Tom
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a small swing application. When user click on the button it should lock the screen of my windows machine.

Hello Tom,
Your post is bereft of all the details necessary to actually be answerable. You may wish to tell us what is not working in your code, what actual question you may have. Please have a look at the FAQ's to see suggestions on how to ask answerable questions here. HowToAskQuestionsOnJavaRanch

I'll tell you that 1) this is hard to do in Java, and 2) if I were a user of your app, I would soon be very mad at you.
 
Rob Spoor
Sheriff
Posts: 21131
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need to use JNI, and call native function LockWorkStation. And please UseAMeaningfulSubjectLine
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!