f.dispatchEvent(new WindowEvent( f, WindowEvent.WINDOW_CLOSING));
passSomeTime(); this.setVisible(false); this.dispatchEvent(new WindowEvent( this, WindowEvent.WINDOW_CLOSING)); this.dispose();
if (popupEvent != null) { popupComponent.dispatchEvent(popupEvent); } else if (event instanceof ActiveEvent) { ((ActiveEvent) event).dispatch(); } else if (source instanceof Component) { ((Component) source).dispatchEvent(event); } else if (source instanceof MenuComponent) { ((MenuComponent) source).dispatchEvent(event);
public void actionPerformed(ActionEvent e) { DialogClose.this.setVisible(false); DialogClose.this.dispatchEvent(new WindowEvent( DialogClose.this, WindowEvent.WINDOW_CLOSING));
((ActiveEvent) event).dispatch(); } else if (source instanceof Component) { ((Component) source).dispatchEvent(event); } else if (source instanceof MenuComponent) { ((MenuComponent) source).dispatchEvent(event);
dialog.dispatchEvent(new WindowEvent( dialog, WindowEvent.WINDOW_CLOSING));
private boolean repostEvent(MouseEvent e) { if (dispatchComponent == null) { return false; } MouseEvent e2 = SwingUtilities.convertMouseEvent(table, e, dispatchComponent); dispatchComponent.dispatchEvent(e2); return true; }
private boolean repostEvent(MouseEvent e) { if (dispatchComponent == null) { return false; } MouseEvent e2 = SwingUtilities.convertMouseEvent(header, e, dispatchComponent); dispatchComponent.dispatchEvent(e2); return true; }
@Override public void run() { try { for (KeyEvent event : pendingEvents) { editor.getEditorComponent().dispatchEvent(event); } pendingEvents.clear(); } finally { isDispatching = false; } } });
public void run() { component.requestFocus(); component.dispatchEvent(keyEvent); } }
public void mouseDragged(MouseEvent e) { if (destination != null) destination.dispatchEvent(SwingUtilities.convertMouseEvent( source, e, destination)); }
public static void dispatchEvent(Object src, AWTEvent event) { if (src instanceof Component) { ((Component) src).dispatchEvent(event); } else if (src instanceof MenuComponent) { ((MenuComponent) src).dispatchEvent(event); } }
public void run() { FocusEvent ev = new FocusEvent(source, FocusEvent.FOCUS_GAINED); target.dispatchEvent(ev); } });
private boolean repostEvent(MouseEvent e) { if (dispatchComponent == null) { return false; } MouseEvent e2 = SwingUtilities.convertMouseEvent(table, e, dispatchComponent); dispatchComponent.dispatchEvent(e2); return true; }
@Override public void run() { try { for (KeyEvent event : pendingEvents) { editor.getEditorComponent().dispatchEvent(event); } pendingEvents.clear(); } finally { isDispatching = false; } } });
private boolean repostEvent(MouseEvent e) { if (dispatchComponent == null) { return false; } MouseEvent e2 = SwingUtilities.convertMouseEvent(table, e, dispatchComponent); dispatchComponent.dispatchEvent(e2); return true; }
public void mouseClicked(MouseEvent e) { if (destination != null) destination.dispatchEvent(SwingUtilities.convertMouseEvent( source, e, destination)); }
public void processMouseEvent(MouseEvent e) { if (e instanceof MouseWheelEvent) { Component target = JExtendedTree.this.getParent(); if (target == null || !(target instanceof JViewport)) target = JExtendedTree.this; MouseEvent mwe = SwingUtilities.convertMouseEvent( JExtendedTree.this, (MouseWheelEvent)e, target); target.dispatchEvent((MouseWheelEvent)mwe); } else { super.processMouseEvent((MouseEvent)e); } }
public MouseInputHandler(Component source, Component destination, MouseEvent event) { this.source = source; this.destination = destination; this.source.addMouseListener(this); this.source.addMouseMotionListener(this); /* Dispatch the editing event */ destination.dispatchEvent(SwingUtilities.convertMouseEvent(source, event, destination)); }
public void processMouseEvent(MouseEvent e) { if (e instanceof MouseWheelEvent) { Component target = JTreeTable.this.getParent(); if (target == null || !(target instanceof JViewport)) target = JTreeTable.this; MouseEvent mwe = SwingUtilities.convertMouseEvent( JTreeTable.this, (MouseWheelEvent)e, target); target.dispatchEvent((MouseWheelEvent)mwe); } else { super.processMouseEvent((MouseEvent)e); } }