posted 9 years ago
Hello Guys ,
I have parent JFrame which has some buttons , when I click button called scan . I crate the object for JDialog which contain text area which I cant print in. After I close the JDialog scan operation performs ! But I cant still print anything to even hello to my Dialog . Do i miss step here ? Please help !
I tried this.
public class Uitest extends javax.swing.JFrame {
public ScanResultsDialog sr;
private void ScanActionPerformed(java.awt.event.ActionEvent evt) {
sr = new ScanResultsDialog(Uitest.this , true);
}
}
My Dialog class ScanResultDialog with constructor which has text area called jtextarea1
public class ScanResultsDialog extends javax.swing.JDialog {
public ScanResultsDialog(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
this.setVisible(modal);
this.jtextarea1.sppend|("Hello");
}
Thanks