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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      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()

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Imported:
              Indexed: