title: how to create dynamic JLabel from netbeans
body: <p>I have public static variable in a JFrame. I have created a JLabel in another JFrame. I want to set the JLabel text to that variable. when I create the JLabel from netbeans, it create autogenerated code that can't be changed. I used netbeans 7.2.</p>
  
  <p>I can change the JLabel using <code>myJLabel.setText(JFrame.variableName);</code>. but the problem is auto generated code doesn't allow me to edit above code snippet. </p>
  
  <p>I would like to set the text to variable name by setting in property panel rather changing above code.</p>
  
  <p>Is there a way to set the dynamic text using property panel?</p>
  
  <p><code>P.S. - I noticed in property panel, we can set jLabel value from existing component but these components reside in same JFrame. My variable reside in another JFrame</code></p>