Module tvbrowser

Class TextComponentPopupEventQueue


  • public class TextComponentPopupEventQueue
    extends java.awt.EventQueue
    This EventQueue is based on the implementation of Santhosh.

    For details look here: https://web.archive.org/web/20060504030843/http://jroller.com/page/santhosh?entry=context_menu_for_textcomponents

    Author:
    Santhosh Kumar T - santhosh@in.fiorano.com
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void addStandardContextMenu​(javax.swing.text.JTextComponent tc, javax.swing.JPopupMenu menu)  
      static void addStandardContextMenu​(javax.swing.text.JTextComponent tc, javax.swing.JPopupMenu menu, java.lang.String link)  
      protected void dispatchEvent​(java.awt.AWTEvent event)  
      • Methods inherited from class java.awt.EventQueue

        createSecondaryLoop, getCurrentEvent, getMostRecentEventTime, getNextEvent, invokeAndWait, invokeLater, isDispatchThread, peekEvent, peekEvent, pop, postEvent, push
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TextComponentPopupEventQueue

        public TextComponentPopupEventQueue()
    • Method Detail

      • dispatchEvent

        protected void dispatchEvent​(java.awt.AWTEvent event)
        Overrides:
        dispatchEvent in class java.awt.EventQueue
      • addStandardContextMenu

        public static void addStandardContextMenu​(javax.swing.text.JTextComponent tc,
                                                  javax.swing.JPopupMenu menu)
      • addStandardContextMenu

        public static void addStandardContextMenu​(javax.swing.text.JTextComponent tc,
                                                  javax.swing.JPopupMenu menu,
                                                  java.lang.String link)