Pessoal,
Estou tentando acessar do meu JDialog os metodos do meu FramePai , mais estou com o seguinte problema: na linha super(frame); está com o erro abaixo:
[color=red]
cannot symbol
symbol constructor JDialog(framepai.FramePaView)
location : class.javax.swing.JDialog[/color]
Chamar o Jdialog:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
JDialog jD;
jD = new JDialog();
jD.setVisible(true);
}
parâmetro do Jdialog:
public class JDialog extends javax.swing.JDialog {
FramePaiView frame;
public JDialog(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
}
public JDialog(FramePaiView frame){
super(frame);
this.frame = frame;
}