JDK-6289635 : getDesktopProperty("awt.cursorBlinkRate") returns null
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-06-22
  • Updated: 2007-12-07
  • Resolved: 2007-12-07
Related Reports
Relates :  
Description
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

Comments
EVALUATION 4257139 was closed as "will not fix" since list of available properties is platrform specific. Thus I'm closing this CR too.
07-12-2007

EVALUATION Here is the complete list of properties installed in JDK. String propnames[] = (String[])Toolkit.getDefaultToolkit().getDesktopProperty("win.propNames"); System.out.println("Supported windows property names:"); for(int i = 0; i < propnames.length; i++) { System.out.println(""+ propnames[i]+ "=="+ Toolkit.getDefaultToolkit().getDesktopProperty(propnames[i])); } According to http://java.sun.com/j2se/1.5.0/docs/guide/swing/1.4/w2k_props.html awt.cursorBlinkRate prop should be supported but it doens't in any JDK right from 1.3 but don't really know if this document actual now and who is the author. Actually there is a note near some of the properties - "TBI" without any clarification about its meaning(perhaps ToBeInplemented?) and this note is near awt.cursorBlickRate too. It happens on Windows2000 and XP both. ###@###.### 2005-06-23 08:54:53 GMT There exists general request to specify desktop properties: 4257139. ###@###.### 2005-06-23 16:32:54 GMT
23-06-2005