title: why I can't change text in JLabel from public static void main?
body: <p>I'm new in netbeans and java swing, but also confused. I put some JLabel's from drag and drop in netbeans with some text, and now I want to change that text from the code, and I'm getting error non-static variable can not be referred from static context.
  help</p>
  
  <pre><code>FirstFrame f = new FirstFrame();
  f.labSifra.setText("aaaa");
  </code></pre>
  
  <p>I tried this and when I start app JLabel is still with the old text</p>