title: setup Login System and privilege and permission for Java
body: <p>I'm trying to make a java program that prompt Login for the user and then some options and actions in the program will be available depend on the user permission. so for example , some user can print the picture other can not. </p>
  
  <p>I'm sure this thing have been done many times. I'm looking for a tutorial or code sample to start with. I search in the interent but I couldn't find anything useful. Please help me </p>
  
  <p>Thank you </p>