title: How should we know that which logged in user is using the form in java?
body: <p>Hai all I am creating an application in java in which each user have to log into my application and to use the same swing form. But for each user some items in the form will be different according to their job title. So how could I know that which user is using the form. I had search in Google about this but found no solution. I will be thankful if someone help me out in this issue.</p>
  
  <p>I am using java swing to create the form, MS SQL Server as the server and hibernate framework.</p>