title: How to pass value to JPanel class after click button?
body: <p>How I can to pass value to JPanel class after click button this my Code !</p>
  
  <pre><code>  patientFrame
  
  {
      patientFrame.add(new pnlPatientInformation());
  
      JButton btnShearch = new JButton("Search");
  
      btnShearch.addActionListe(,,,)
      {
          pnlPatientInformation pnlx = new pnlPatientInformation()
          pnlx.lblID.setText("Value");
      }
  
      pnlPatientInformation exetend JPanel()
      {
          JLabel lblID = new JLabel();
          pnlPatientInformation.add(lblID);
      }
  </code></pre>