List of usage examples for java.awt.event ComponentEvent COMPONENT_HIDDEN
int COMPONENT_HIDDEN
To view the source code for java.awt.event ComponentEvent COMPONENT_HIDDEN.
Click Source Link
From source file:Main.java
@Override public void componentHidden(ComponentEvent e) { System.out.println(e.getID() == ComponentEvent.COMPONENT_HIDDEN); }
From source file:EventTestPane.java
/** Display Component events. */ public void processComponentEvent(ComponentEvent e) { switch (e.getID()) { case ComponentEvent.COMPONENT_MOVED: showLine("COMPONENT_MOVED"); break;//www .j a va 2 s . co m case ComponentEvent.COMPONENT_RESIZED: showLine("COMPONENT_RESIZED"); break; case ComponentEvent.COMPONENT_HIDDEN: showLine("COMPONENT_HIDDEN"); break; case ComponentEvent.COMPONENT_SHOWN: showLine("COMPONENT_SHOWN"); break; } }
From source file:it.ventuland.ytd.ui.GUIClient.java
@Override public void processComponentEvent(ComponentEvent e) { switch (e.getID()) { case ComponentEvent.COMPONENT_MOVED: break;/*from www . ja v a 2s . com*/ case ComponentEvent.COMPONENT_RESIZED: middlepane.setDividerLocation(middlepane.getWidth() / 3); break; case ComponentEvent.COMPONENT_HIDDEN: break; case ComponentEvent.COMPONENT_SHOWN: break; } }
From source file:org.eclipse.jubula.rc.swing.listener.ComponentHandler.java
/** * {@inheritDoc}//from w ww .j a v a 2s. c om */ public void eventDispatched(AWTEvent event) { final ClassLoader originalCL = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader()); try { if (log.isDebugEnabled()) { log.debug(event.paramString()); } final int id = event.getID(); ComponentEvent componentEvent; switch (id) { case WindowEvent.WINDOW_ACTIVATED: case WindowEvent.WINDOW_OPENED: // add recursivly all components to AUTHierarchy // and create names for unnamed components Window window = ((WindowEvent) event).getWindow(); autHierarchy.add(window); break; case ContainerEvent.COMPONENT_ADDED: checkContainerListener((ContainerEvent) event); break; case ComponentEvent.COMPONENT_HIDDEN: componentEvent = (ComponentEvent) event; if (!hasListener(componentEvent.getComponent(), ComponentListener.class)) { autHierarchy.componentHidden(componentEvent); } break; case ComponentEvent.COMPONENT_SHOWN: componentEvent = (ComponentEvent) event; if (!hasListener(componentEvent.getComponent(), ComponentListener.class)) { autHierarchy.componentShown(componentEvent); } break; default: // do nothing } if (AUTServer.getInstance().getMode() == ChangeAUTModeMessage.OBJECT_MAPPING) { AUTServer.getInstance().updateHighLighter(); } } catch (Throwable t) { log.error("exception during ComponentHandler", t); //$NON-NLS-1$ } finally { Thread.currentThread().setContextClassLoader(originalCL); } }
From source file:zsk.JFCMainClient.java
public void processComponentEvent(ComponentEvent e) { switch (e.getID()) { case ComponentEvent.COMPONENT_MOVED: break;/*from w w w.j a v a 2s . c o m*/ case ComponentEvent.COMPONENT_RESIZED: JFCMainClient.frame.middlepane.setDividerLocation(JFCMainClient.frame.middlepane.getWidth() / 3); break; case ComponentEvent.COMPONENT_HIDDEN: break; case ComponentEvent.COMPONENT_SHOWN: break; } }