Package java.awt

Examples of java.awt.Frame.dispose()


        Frame frame;
        for(int i=0; i<nbFrames; i++) {
            frame = frames[i];
            if(frame.isShowing()) {
                LOGGER.debug("disposing frame#"+i);
                frame.dispose();
            }
        }

        // Initiate shutdown sequence.
        // Important note: we cannot rely on windowClosed() triggering the shutdown sequence as
View Full Code Here


        "fileDlgOpen" ), FileDialog.LOAD );
      fDlg.setFilenameFilter( doc );
      // fDlg.setDirectory();
      // fDlg.setFile();
      fDlg.show();
      frame.dispose();
      strDir  = fDlg.getDirectory();
      strFile  = fDlg.getFile();
     
      if( strFile == null ) return null;   // means the dialog was cancelled
View Full Code Here

                    failed("Painting error: Move frame to back and to front.", true);
                    capturer.writeImages();
                }
            }

            coverFrame.dispose();
        }
        finally
        {
            if (f != null)
                f.dispose();
View Full Code Here

                    //                   Thread.sleep(2000);
                }
           
            } finally {
                bean.stopOOoConnection();
                frame.dispose();
            }
        }
    }

    /** Repeatedly loading a document in one and the same OOoBean instance.
View Full Code Here

        SwingUtilities.getDeepestComponentAt(f, 10, 10);
        try {
            Thread.sleep(DEAD_LOOP_TIMEOUT);
        } catch (Exception e) {}
       
        f.dispose();
       
        assertTrue("Dead loop occured", counter[0] <= VALID_NUMBER_OF_CALLS);
    }

}
View Full Code Here

    beginSearch();   

    Date end = new Date();

    if (m_printValues == WINDOW) {
      valuesFrame.dispose();
    }

    m_time = new Date(end.getTime() - start.getTime());
  }
View Full Code Here

      final Frame  frame  = new Frame();

      fDlg  = new FileDialog( frame,
        AbstractApplication.getApplication().getResourceString( "fileDlgSave" ),
        FileDialog.SAVE );
      frame.dispose();
      f  = doc.getFile(); // (File) doc.getMap().getValue( Session.MAP_KEY_PATH );
      if( f != null ) f = f.getParentFile()// use session folder instead of XML file
      if( f != null ) {
        strDir  = f.getParent();
        strFile = f.getName();
View Full Code Here

    beginSearch();   

    Date end = new Date();

    if (m_printValues == WINDOW) {
      valuesFrame.dispose();
    }

    m_time = new Date(end.getTime() - start.getTime());
  }
View Full Code Here

            // FIXME: this works as a test, but fails in ShapedWindowDemo
            // if the JAWT load workaround is not used
            Native.getWindowPointer(f);
        }
        finally {
            f.dispose();
        }
    }
   
    public static interface CLibrary extends Library {
        int wcslen(WString wstr);
View Full Code Here

      switch (e.type) {
      case SWT.Dispose: {
        parent.setVisible(false);
        EventQueue.invokeLater(new Runnable () {
          public void run () {
            frame.dispose ();
          }
        });
        break;
      }
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.