title: How to store a static variable in desktop application designed in Java Swing?
body: <p>I start my desktop app with a login, validate the user and "redirect" to the index Jframe.</p>
  
  <p>What I want now is to store a user Object obtained from login so that it's available in all jframes that I'll use later. </p>
  
  <p>Is it possible? I know that session variables are not that useful in desktop apps but I can't seem to find the way to create a static variable.</p>
  
  <p>I tried creating my Object user in  main, then setting it up after login. But it couldn't find the variable.</p>