Package java.awt

Examples of java.awt.Frame.dispose()


        f.setSize(300, 300);
        f.setLocation(0, 0);
        f.validate();
        f.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                f.dispose();
            }
        });
        f.setVisible(true);
    }
View Full Code Here


    m.insert(itemD, 1);
    harness.check(m.getItem(0), itemB);
    harness.check(m.getItem(1), itemD);
    harness.check(m.getItem(2), itemC);
    harness.check(m.getItem(3), itemA);
    f.dispose();
  }
}
View Full Code Here

    harness.check(list.getSelectedIndex(), -1);
    list.setMultipleMode(false);
    harness.check(list.getSelectedIndex(), 0);
    harness.check(list.isMultipleMode(), false);
    harness.check(list.getSelectedIndex(), 0);
    f.dispose();
  }
 
  public void test2(TestHarness harness)
  {
    List list = new List();
View Full Code Here

      finally {
  sm.uninstall();
      }

      window.setVisible(false);
      window.dispose();
    }
    catch (Exception ex) {
      harness.debug(ex);
      harness.check(false, "Unexpected exception");
    }
View Full Code Here

    // (frameLoc.x + 20 + i.left, frameLoc.y + 20 + i.top).
    Point compLoc = comp.getLocationOnScreen();
    h.check(compLoc.x, frameLoc.x + 20);
    h.check(compLoc.y, frameLoc.y + 20);

    f.dispose();
  }
}
View Full Code Here

          shell.removeListener (SWT.Iconify, shellListener);
          parent.setVisible(false);
          EventQueue.invokeLater(new Runnable () {
            public void run () {
              frame.getToolkit().removeAWTEventListener(awtListener);
              frame.dispose ();
            }
          });
          break;
        case SWT.Resize:
          if (Library.JAVA_VERSION >= Library.JAVA_VERSION(1, 6, 0)) {
View Full Code Here

    (new Thread(){
      public void run(){
        JobRunnable exitRunnable=new JobRunnable("Local: closeProjects"){
          public Object run() throws Exception{
            Frame frame=getFrame();
            if (frame!=null) frame.dispose();
            System.exit(0);
                return null; //return not used anyway
          }
        };
View Full Code Here

          }catch (InterruptedException e) {}
      }
    }
    if (closeStatus[0]){
      Frame frame=getFrame();
      if (frame!=null) frame.dispose();
      //System.exit(0);
      return true;
    }else return false;
  }
View Full Code Here

                Thread.sleep(timeOut);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

            frame.dispose();
        }
    }

    /**
     * DOCUMENT ME!
View Full Code Here

        try {
            receiver.run();
        } finally {
            if (frame != null) {
                frame.setVisible(false);
                frame.dispose();
            }
            this.shutdown();
        }
    }
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.