congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Window.removeWindowListener
Code IndexAdd Tabnine to your IDE (free)

How to use
removeWindowListener
method
in
java.awt.Window

Best Java code snippets using java.awt.Window.removeWindowListener (Showing top 20 results out of 396)

origin: bobbylight/RSyntaxTextArea

private void uninstallAndHide() {
  Window parent = (Window)getParent();
  parent.removeWindowFocusListener(this);
  parent.removeWindowListener(this);
  parent.removeComponentListener(this);
  removeWindowFocusListener(this);
  setVisible(false);
  dispose();
}
origin: bobbylight/RSyntaxTextArea

private void uninstallAndHide() {
  Window parent = (Window)getParent();
  parent.removeWindowFocusListener(this);
  parent.removeWindowListener(this);
  parent.removeComponentListener(this);
  removeWindowFocusListener(this);
  setVisible(false);
  dispose();
}
origin: xyz.cofe/gui.swing

@Override
public void close() throws IOException {
  if(cmpt!=null && l!=null ){
    cmpt.removeWindowListener(l);
    cmpt = null;
    l = null;
  }
}};
origin: xyz.cofe/gui.swing

@Override
public void close() throws IOException {
  if(cmpt!=null && l!=null ){
    cmpt.removeWindowListener(l);
    cmpt = null;
    l = null;
  }
}};
origin: triplea-game/triplea

private void detachWindowListener() {
 if (window != null) {
  window.removeWindowListener(windowDeactivationObserver);
 }
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

public final boolean removeClosingListener() {
  synchronized(closingListenerLock) {
    if(null != listenTo) {
      listenTo.removeWindowListener(windowClosingAdapter);
      listenTo = null;
      return true;
    }
  }
  return false;
}
origin: khuxtable/seaglass

public void ancestorRemoved(AncestorEvent event) {
  Window window = weakReference.get() == null ? null : SwingUtilities.getWindowAncestor(weakReference.get());
  if (window != null) {
    window.removeWindowListener(windowListener);
  }
}
origin: net.java.dev.jna/jna-platform

  @Override
  public void windowClosed(WindowEvent e) {
    e.getWindow().removeWindowListener(this);
  }
});
origin: net.java.dev.jna/platform

public void windowOpened(WindowEvent e) {
  e.getWindow().removeWindowListener(this);
  action.run();
}
public void windowClosed(WindowEvent e) {
origin: net.sf.squirrel-sql.thirdparty-non-maven/napkinlaf

/** Uninstalls the necessary listeners. */
private void uninstallListeners() {
  if (window != null) {
    window.removeWindowListener(windowListener);
    window.removePropertyChangeListener(propertyChangeListener);
  }
}
origin: net.java.dev.jna/jna-platform

@Override
public void windowOpened(WindowEvent e) {
  e.getWindow().removeWindowListener(this);
  action.run();
}
@Override
origin: net.sf.tinylaf/tinylaf

  public void windowClosed(WindowEvent e) {
    Window w = e.getWindow();
    
    w.removeWindowListener(activationListener);
    DIALOGS.remove(w);
    if(DEBUG_DIALOGS) System.out.println("windowClosed - " + DIALOGS.size() + " dialogs");
  }
};
origin: net.sf.tinylaf/tinylaf

/**
 * Uninstalls the necessary listeners.
 */
private void uninstallListeners() {
  if(window != null) {
    window.removeWindowListener(windowListener);
    window.removePropertyChangeListener(propertyChangeListener);
    window.removeComponentListener(windowMoveListener);
  }
}
origin: net.java.dev.jna/platform

public void removeNotify() {
  Toolkit.getDefaultToolkit().removeAWTEventListener(listener);
  Window w = SwingUtilities.getWindowAncestor(this);
  w.removeComponentListener(listener);
  w.removeWindowListener(listener);
  super.removeNotify();
}
origin: org.netbeans.api/org-openide-explorer

public void removeNotify() {
  // #57560: properties should always save changes
  Container top = getTopLevelAncestor();
  if (top instanceof Window && parentListener != null) {
    ((Window) top).removeWindowListener(parentListener);
    parentListener = null;
  }
  super.removeNotify();
}
origin: com.jidesoft/jide-oss

  @Override
  public void windowDeactivated(WindowEvent e) {
    stopDragging();
    if (e.getWindow() != null) {
      e.getWindow().removeWindowListener(_windowDeactivatedListener);
    }
  }
};
origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf

/**
 * Overriden to unregister on the window
 */
protected void uninstallListeners() {
 m_Window.removePropertyChangeListener(propertyChangeListener);
 if (m_Window instanceof Window.FrameWindow && m_WindowListener != null) {
  ((Window.FrameWindow)m_Window).getMainFrame().removeWindowListener(
   m_WindowListener);
 }
}
origin: net.java.dev.jna/jna-platform

@Override
public void removeNotify() {
  Toolkit.getDefaultToolkit().removeAWTEventListener(listener);
  Window w = SwingUtilities.getWindowAncestor(this);
  w.removeComponentListener(listener);
  w.removeWindowListener(listener);
  super.removeNotify();
}
origin: abbot/abbot

public void windowClosed(WindowEvent e) {
  e.getWindow().removeWindowListener(this);
  e.getWindow().removeComponentListener(this);
  
  // Remove self when we tidy up
  watchers.remove(e.getWindow());
}
public void componentResized(ComponentEvent e) { }
origin: com.fifesoft/rsyntaxtextarea

private void uninstallAndHide() {
  Window parent = (Window)getParent();
  parent.removeWindowFocusListener(this);
  parent.removeWindowListener(this);
  parent.removeComponentListener(this);
  removeWindowFocusListener(this);
  setVisible(false);
  dispose();
}
java.awtWindowremoveWindowListener

Javadoc

Removes the specified window listener so that it no longer receives window events from this window. If l is null, no exception is thrown and no action is performed.

Popular methods of Window

  • dispose
    Releases all of the native screen resources used by thisWindow, its subcomponents, and all of its ow
  • setVisible
  • setLocation
  • pack
    Causes this Window to be sized to fit the preferred size and layouts of its subcomponents. If the wi
  • addWindowListener
    Adds the specified window listener to receive window events from this window. If l is null, no excep
  • getSize
  • getWidth
  • getHeight
  • setSize
  • setBounds
  • getBounds
  • getGraphicsConfiguration
    This method returns the GraphicsConfiguration used by this Window.
  • getBounds,
  • getGraphicsConfiguration,
  • isVisible,
  • addComponentListener,
  • getX,
  • getY,
  • toFront,
  • getLocation,
  • removeComponentListener

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now