Package java.awt

Examples of java.awt.Window.dispose()


        _(CONFIRM), JOptionPane.YES_OPTION,
        JOptionPane.QUESTION_MESSAGE, null, new Object[] { _(YES),
            _(NO) }, _(YES));
    if (result == JOptionPane.YES_OPTION) {
      finder.cancel(true); // FIXME sometimes the finder still running
      parent.dispose();
    }
  }

}
View Full Code Here


    }
   
    static class DisposeOnClose extends ComponentAdapter implements Serializable{
        public void componentHidden(ComponentEvent e) {
            Window w = (Window)e.getComponent();
            w.dispose();
        }
    }
   
}
View Full Code Here

    }

    static class DisposeOnClose extends ComponentAdapter implements Serializable{
        public void componentHidden(ComponentEvent e) {
            Window w = (Window)e.getComponent();
            w.dispose();
        }
    }

}
View Full Code Here

    }
   
    static class DisposeOnClose extends ComponentAdapter implements Serializable{
        public void componentHidden(ComponentEvent e) {
            Window w = (Window)e.getComponent();
            w.dispose();
        }
    }
   
}
View Full Code Here

      // Log.debug (currentToolbar.getParent());
      final Window w = SwingUtilities.windowForComponent(toolBar);
      if (w != null)
      {
        w.setVisible(false);
        w.dispose();
      }
    }
    toolBar.setVisible(false);
  }
View Full Code Here

        info2.addHyperlinkListener(new HyperlinkListener() {
          public void hyperlinkUpdate(HyperlinkEvent e) {
            if(HyperlinkEvent.EventType.ACTIVATED.equals(e.getEventType())){
              Window w = SwingUtilities.getWindowAncestor((Component)e.getSource());
              if(w != null){
                w.dispose();
              }
              search.setText(e.getDescription());
              doSearch();
              try {
                show(terminology.lookupConcept(e.getDescription()));
View Full Code Here

        info2.addHyperlinkListener(new HyperlinkListener() {
          public void hyperlinkUpdate(HyperlinkEvent e) {
            if(HyperlinkEvent.EventType.ACTIVATED.equals(e.getEventType())){
              Window w = SwingUtilities.getWindowAncestor((Component)e.getSource());
              if(w != null){
                w.dispose();
              }
              search.setText(e.getDescription());
              doSearch();
              try {
                show(terminology.lookupConcept(e.getDescription()));
View Full Code Here

    private static final long serialVersionUID = 1L;

    @Override
    public void componentHidden(final ComponentEvent e) {
      final Window w = (Window) e.getComponent();
      w.dispose();
    }
  }

  static JColorChooser colorChooser = new JColorChooser();
  /**
 
View Full Code Here

public class BasicWindowMonitor extends WindowAdapter {

    public void windowClosing(WindowEvent e) {
        Window w = e.getWindow();
        w.setVisible(false);
        w.dispose();
        System.exit(0);
    }
}
View Full Code Here

      m_Backup = copyObject(m_Object);
      if ((getTopLevelAncestor() != null)
    && (getTopLevelAncestor() instanceof Window)) {
        Window w = (Window) getTopLevelAncestor();
        w.dispose();
      }
    }
  });
     
      m_cancelBut = new JButton(Messages.getInstance().getString("GenericObjectEditor_CancelBut_JButton_Text"));
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.