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

getDesktopProperty("awt.cursorBlinkRate") returns null

XMLWordPrintable

    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.5.0_03"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
      Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      I cannot get the Windows configured cursor blink rate by using the call:

        Toolkit.getDefaultToolkit().getDesktopProperty("awt.cursorBlinkRate")

      It returns null. This prevents our editor from obeying the user-specified blink rate.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Call Toolkit.getDefaultToolkit().getDesktopProperty("awt.cursorBlinkRate") and examine results.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      An Integer with the system-configured cursor blink rate.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.io.*;
      import java.awt.Toolkit;

      public class TestCursor {
          public static void main(String args[]) throws IOException {
              System.out.println(Toolkit.getDefaultToolkit()
                                 .getDesktopProperty("awt.cursorBlinkRate"));
              
          }
      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      None that I know of.
      ###@###.### 2005-06-22 22:59:14 GMT

            son Oleg Sukhodolsky (Inactive)
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: