java - New Window Doesn't Load -


I need some help, I have a method that is done when a button is clicked, Opens a new window, updates a variable in another category, the method then receives this variable from the class and then uses it

The loaded window is empty, and it seems that The wait () function thread is shutting down before a new window is loaded.

  Private Zero AutoFillUppers Actionproffered (Java.av.ed.ActivationEVT) {Public Lawson PL = New Public Telson (); New date selection () Set Vivek (Truth); Try {synchronize (this) {this.wait (); }} Hold (exception e) {} int var = pL.getAmount (); System.out.println ("var =" + var); Default table model default model = (default table model) pupilTable.getModel (); For (int i = 0; i & lt; = (user countem1); i ++) {default modell.setview (var, 5, i); Println ("BeingSet"); }}    

You are blocking. No event can be processed by allowing wait to move the EDT before the call, which means that nothing can be painted.

Instead of using a new window, the model dialog blocks access to all other top-level components (depending on the instrument type), as long as they are not properly handled.

Comments