title: show data from jTable in jFrame
body: <p>I have jFrame2 which contains jTable with 4 columns (the jTable taking data from table in database which contain 20 columns)
  Also I have jFrame1 which I have used it to fill database.
  What I want to do that when I select row in jTable and click jButton, it must open jframe1 showing all data for that row.
  i will clear what i want in points</p>
  
  <p>*i want open jframe1 from jframe2 via jbutton(this task is done and this is the code)</p>
  
  <pre><code>      public void actionPerformed(ActionEvent e) {
         if(e.getSource()==jButton2){
         jframe2 regFace =new jframe2();
        regFace.setVisible(true);
     }}
  </code></pre>
  
  <p>*once jframe1 opened by jbutton in jframe2 it must show in it fields all data of selected row in jframe2>>this point mean </p>
  
  <p>........-sql query executed once jfram1 opened by Jbutton in jframe2</p>
  
  <p>.........-showing data in jtextfield taking from database by query i mentioned in line above (this task is done and this is the code but not completed)</p>
  
  <pre><code>try {
     dbconnect = new myDbConnection();
          ResultSet resultSet =null;
          resultSet = dbconnect.excuteQuery("SELECT id, area,location, status1 FROM pledges where id='17'");
  
         while (resultSet.next()){
                id.setText(resultSet.getString(1));
                  area.setText(resultSet.getString(2));
                  location.setText(resultSet.getString(3));
                  status.setText(resultSet.getString(4));
                  //         i = Long.parseLong(rs1.getString(1));
              }
  </code></pre>
  
  <p>*in brief i want understand jframe1 that please if you opened by jframe2 execute a query and fill text fields by that query
  *this is picture would clear better
  <a href="http://www.zshare.net/image/889479437e2a5c94/" rel="nofollow">here</a></p>