Java newbie here. I am using NetBeans 11.2. I am making a GUI awt app, I have a main class as a JFrame, and I need to reference the JTable on it or its model from another class. 

Not to overload this post with lots of code, I created a tiny project from the tutorial [on the Oracle site](https://docs.oracle.com/javase/tutorial/uiswing/learn/settingup.html). Basically, a project named "CelciusConverterProject", a JFrame named "CelciusconverterGUI" as main class in package "learn". Then I plopped a jTable1 onto the frame and added a getter to CelciusconverterGUI for the table model named "getMdl()" :

```
package learn;

import javax.swing.table.DefaultTableModel;

public class CelsiusConverterGUI extends javax.swing.JFrame {

[...]

          /* Create and display the form */
          java.awt.EventQueue.invokeLater(new Runnable() {
               public void run() {
                    new CelsiusConverterGUI().setVisible(true);
               }
          });
     }

     // Variables declaration - do not modify                     
     private javax.swing.JScrollPane jScrollPane1;
     private javax.swing.JTable jTable1;
     // End of variables declaration                   

     public DefaultTableModel getMdl() {
          return (DefaultTableModel) this.jTable1.getModel();
     }

}

```

No errors so far, the Navigator pane shows getMdl as a public method.

Now I have created a new class called "Testing", but I cannot figure out how to call getMdl() from the instantiated running JFrame:

```
package learn;

import javax.swing.table.DefaultTableModel;

public class Testing {

     tmdl = (DefaultTableModel) <...>

}

```

Neither

```
 tmdl = new (DefaultTableModel) learn.CelsiusConverterGUI.

```

nor 

```
 tmdl = (DefaultTableModel) learn.CelsiusConverterGUI.

```

is showing me my getter in the code completion window.

Probably a totally noobish question, but sorry I can't even google anyone who has asked the same question.