Tenho um internal frame que ao evento clique do botão deveria abrir o jdialog que por sua vez buscaria um método do internal.
jinternal frame:
public class FramePedidos extends javax.swing.JInternalFrame {
public static Teste teste;
public String retornaNomeCliente(){
return nomeCliente = "Deu Certo";
}
private void bt_recebimentoActionPerformed(java.awt.event.ActionEvent evt) {
Teste t;
t = new Teste(teste, true);
t.setVisible(true);
// TODO add your handling code here:
}
E no meu jDialog Teste está assim:
public class Teste extends javax.swing.JDialog {
private static FramePedidos pedidos;
/** Creates new form Teste */
public Teste(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
jTextField1.setText(pedidos.retornaNomeCliente());
}
Teste(Teste teste, boolean b) {
throw new UnsupportedOperationException("Not yet implemented");
}
Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not yet implemented