JDK-4899120 : DragSource.getDragThreshold() and "DnD.gestureMotionThreshold" desktop property
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 2003-07-31
  • Updated: 2021-07-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Relates :  
Description

Name: sdR10048			Date: 07/31/2003


Filed By      : SPB JCK team (###@###.###)
JDK           : java full version "1.5.0-beta-b12"
JCK           : 1.5
Platform[s]   : Solaris

Specification excerpt:
======================
--------- J2SE API spec v.1.5 ---------
...
public static int getDragThreshold()

Returns the drag gesture motion threshold. The drag gesture motion threshold
defines the recommended behavior for MouseDragGestureRecognizers. 

If the system property awt.dnd.drag.threshold is set to a positive integer,
this method returns the value of the system property; otherwise if a pertinent
desktop property is available and supported by the implementation of the Java
platform, this method returns the value of that property; otherwise this method
returns some default value. The pertinent desktop property can be queried using
java.awt.Toolkit.getDesktopProperty("DnD.gestureMotionThreshold"). 

Returns:
    the drag gesture motion threshold
...
---------- end-of-excerpt ---------------

Problem description
===================
The problem is with 
'The pertinent desktop property can be queried using
 java.awt.Toolkit.getDesktopProperty("DnD.gestureMotionThreshold").'

The designated method getDesktopProperty(String) returns Object.
In our case it is unclear which object is this: Integer or String 
(or may be something else) since we expect integer value.

That needed for JCK test development.

Currently JDK RI returns an Integer object.

======================================================================

Comments
EVALUATION It's natural for java.awt.Toolkit.getDesktopProperty("DnD.gestureMotionThreshold") to return an Integer. If JCK consider this to be worth of documenting, then we'll do it. ###@###.### 2005-1-21 16:17:12 GMT There exists more general request to specify desktop properties: 4809533. ###@###.### 2005-1-26 12:41:52 GMT
21-01-2005