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

RFE : Provide API call in java.awt.Cursor to get cursor dimensions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6
    • client-libs
    • x86
    • windows_xp

      A DESCRIPTION OF THE REQUEST :
      There is no way to ask a Cursor obj it's dimensions.

      JUSTIFICATION :
      This is necessary to properly display a tooltip (custom) or other popup window that is not occluded by the mouse cursor.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Methods like this:

      public class Cursor implements java.io.Serializable {

      ...

      public Dimension getSize();
      public int getWidth();
      public int getHeight();

      ...
      }

      CUSTOMER SUBMITTED WORKAROUND :
      Currently, one can get an answer that may or may not be correct via Toolkit.getBestCursorSize()

            volk Konstantin Voloshin (Inactive)
            dav Andrei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: