getToolTipLocation on JLabel to set location over label causes tip to flash

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.2.0
    • Component/s: client-libs



      Name: rk38400 Date: 05/18/98


      Create a subclass of JLabel to set the location of of a ToolTip to be directly over the JLabel.
      Once the tip pops up move the mouse, keeping it inside the JLabel of course, and the ToolTip flash on and off.

      public class JTipLabel extends JLabel
      {
         protected static final Point kToolTipLocation = new Point(0,3);

         public JTipLabel(String labelText)
         {
            super(labelText);
         }

         public Point getToolTipLocation(MouseEvent event)
         {
            return kToolTipLocation;
         }
      }
      (Review ID: 30600)
      ======================================================================
      richard.schiavi@Eng 1998-05-21

      i think i have a fix, need to ensure location check.

            Assignee:
            Scott Violet (Inactive)
            Reporter:
            Ralph Kar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: