D
Dave Brown
Hi All,
Just wondering if anyone can give me any pointers as to why my dialog is
taking too long to display, its a very basic dialog, a dozen textboxes
and labels and thats it. I'm displaying it modally with this code...
private void btnAddActionPerformed(java.awt.event.ActionEvent evt) {
LocationDLG dlg;
dlg = new
LocationDLG((javax.swing.JFrame)this.getTopLevelAncestor(),true);
if (dlg.doModal()) {
RefreshLocations();
}
dlg.dispose();
}
in dlg.doModal() is the code that sets visible to true ;
public boolean doModal() {
setVisible(true);
return retval;
}
once it gets to the setvisible line, debugging over that is what takes
up to 6 seconds. Far too long just for a simple dialog it seems.
Any advice appreciated.
Thanks,
Dave.
Just wondering if anyone can give me any pointers as to why my dialog is
taking too long to display, its a very basic dialog, a dozen textboxes
and labels and thats it. I'm displaying it modally with this code...
private void btnAddActionPerformed(java.awt.event.ActionEvent evt) {
LocationDLG dlg;
dlg = new
LocationDLG((javax.swing.JFrame)this.getTopLevelAncestor(),true);
if (dlg.doModal()) {
RefreshLocations();
}
dlg.dispose();
}
in dlg.doModal() is the code that sets visible to true ;
public boolean doModal() {
setVisible(true);
return retval;
}
once it gets to the setvisible line, debugging over that is what takes
up to 6 seconds. Far too long just for a simple dialog it seems.
Any advice appreciated.
Thanks,
Dave.