Examples of HierarchyEvent


Examples of java.awt.event.HierarchyEvent

      default:
        assert false : "Should not reach here";
    }
    if (enabled)
      {
        HierarchyEvent ev = new HierarchyEvent(this, id, changed, parent,
                                               flags);
        dispatchEvent(ev);
      }
  }
View Full Code Here

Examples of java.awt.event.HierarchyEvent

            // Editor hint support
            Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {

                public void eventDispatched(AWTEvent evt) {
                    HierarchyEvent e = (HierarchyEvent) evt;
                    if (e.getChangeFlags() == HierarchyEvent.DISPLAYABILITY_CHANGED) {
                        Object source = e.getSource();
                       
                        // Is this the code completion window?
                        if (source instanceof JList && source.getClass().getName().equals("org.netbeans.modules.editor.completion.CompletionJList")) {
                            JList jl = (JList)source;
                            if (jl.isDisplayable()) {
View Full Code Here

Examples of java.awt.event.HierarchyEvent

        tooltipKiller = new TooltipKiller(mouseListener) {

            @Override
            public void eventDispatched(AWTEvent event) {

                HierarchyEvent he = (HierarchyEvent) event;
                if (he.getComponent() instanceof JToolTip) {
                    JToolTip jtt = (JToolTip) he.getComponent();
                    listener.setToolTip(jtt.getTipText());
                    jtt.setVisible(false);
                }

            }
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.