Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4899120
Votes 0
Synopsis DragSource.getDragThreshold() and "DnD.gestureMotionThreshold" desktop property
Category java:dragndrop
Reported Against 1.5
Release Fixed
State 6-Fix Understood, bug
Priority: 4-Low
Related Bugs 4257139 , 4809533 , 4415175
Submit Date 31-JUL-2003
Description




Filed By      : SPB JCK team (  xxxxx@xxxxx  )
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  customer  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  customer .

======================================================================
Work Around
N/A
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.
  xxxxx@xxxxx   2005-1-21 16:17:12 GMT

There exists more general request to specify desktop properties: 4809533.
  xxxxx@xxxxx   2005-1-26 12:41:52 GMT
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang