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

How to use
removeComponentListener
method
in
java.awt.Window

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

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: chatty/chatty

/**
 * This should be called when the AutoCompletion is no longer used, so it
 * can be gargabe collected.
 */
public void cleanUp() {
  if (containingWindow != null) {
    containingWindow.removeComponentListener(componentListener);
  }
  infoWindow = null;
}
origin: xyz.cofe/docking-frames-core

public void removeWindowProviderListener( WindowProviderListener listener ) {
  listeners.remove( listener );
  
  if( listeners.size() == 0 ){
    if( window != null ){
      window.removeComponentListener( windowListener );
    }
  }
}

origin: com.fifesoft.rtext/fife.common

/**
 * Called when this component loses its parent.  This method is
 * overridden so we can remove the component listener we added
 * to the parent.
 */
@Override
public void removeNotify() {
  super.removeNotify();
  window.removeComponentListener(maximizeWindow);
}
origin: net.anwiba.commons/anwiba-commons-swing-core

 @Override
 public void windowClosed(final WindowEvent e) {
  this.window.removeComponentListener(this);
  this.window.removeWindowListener(this);
 }
}
origin: com.fifesoft/autocomplete

public void removeFrom(Window w) {
  w.removeComponentListener(this);
  w.removeWindowFocusListener(this);
}
origin: net.sourceforge.mydoggy/mydoggy-plaf

public void cleanup() {
  window.getWindow().removeComponentListener(this);
}
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: 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: com.synaptix/SynaptixSwing

@Override
public void hideWindow() {
  if (window != null) {
    window.setVisible(false);
    window = null;
    toolTip = null;
    parent.removeComponentListener(componentListener);
    field.removeHierarchyBoundsListener(hierachyBoundsListener);
  }
}
origin: de.sciss/scisslib

private void forgetWindow()
{
  if( win != null ) {
    win.removeWindowListener( winL );
    win.removeComponentListener( cmpL );
    if( EventManager.DEBUG_EVENTS ) {
      System.err.println( "DynamicAncestorAdapter removed WindowListener : "+
        win.getClass().getName() );
    }
    win = null;
    if( listening ) stopListening();
  }
}
origin: com.jtattoo/JTattoo

  public void componentHidden(ComponentEvent e) {
    Window window = (Window)e.getComponent();
    DecorationHelper.setTranslucentWindow(window, false);
    window.removeComponentListener(popupWindowListener);
  }
};
origin: robo-code/robocode

public static void packCenterShow(Window window) {
  // We don't want to receive the resize event for this pack!
  window.removeComponentListener(windowPositionManager);
  window.pack();
  center(window);
  window.setVisible(true);
}
origin: joel-costigliola/assertj-swing

@RunsInEDT
@Override
public void windowClosed(WindowEvent e) {
 Window w = e.getWindow();
 w.removeComponentListener(this);
 w.removeWindowListener(this);
}
origin: robo-code/robocode

public static void packCenterShow(Window main, Window window) {
  // We don't want to receive the resize event for this pack!
  window.removeComponentListener(windowPositionManager);
  window.pack();
  center(main, window);
  window.setVisible(true);
}
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.github.insubstantial/substance

@Override
protected void uninstallListeners(JRootPane root) {
  // fix for bug 116 - stopping threads when all frames are
  // not displayable
  if (this.window != null) {
    this.window.removeWindowListener(this.substanceWindowListener);
    this.substanceWindowListener = null;
    this.window
        .removeComponentListener(this.substanceWindowComponentListener);
    this.substanceWindowComponentListener = null;
  }
  root.removeHierarchyListener(this.substanceHierarchyListener);
  this.substanceHierarchyListener = null;
  root.removePropertyChangeListener(this.substancePropertyChangeListener);
  this.substancePropertyChangeListener = null;
  super.uninstallListeners(root);
}
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();
}
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.awtWindowremoveComponentListener

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
  • removeWindowListener
    Removes the specified window listener so that it no longer receives window events from this window.
  • getBounds,
  • removeWindowListener,
  • getGraphicsConfiguration,
  • isVisible,
  • addComponentListener,
  • getX,
  • getY,
  • toFront,
  • getLocation

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 Sublime Text 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