title: How to modify a private access object?
body: <p>I made a frame and added a desktop pane (dp_1) to it. Then I created a separate internal jframe form (Inj) and assigned this code to a button in frame form (main).</p>
  
  <pre><code>Inj inj = new Inj();
  dp_1.add(inj);
  inj.setVisible(true);
  </code></pre>
  
  <p>It works fine. Then I created another internal jframe form(Inj_1). I want to set it visible by a button in Inj. I did trying the same code, but there comes an error.</p>
  
  <p>Error is ;</p>
  
  <pre><code>error: dp_1 has private access in NewJFrame
  </code></pre>
  
  <p>*<strong>() include the variable name.</strong></p>