Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4139679

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: