My understanding is that the timing is determined by
the Windows setting though I don't think I've ever
seen this in any official documentation.

If changing that setting doesn't help then there are
a few approaches you could use to address this:

1) You could have the control determine the timing of
two single clicks and treat them as a double click.
The downside of this approach is you have to do it for
each control and you need to deal with handling the first
click as a single click if no second click arrives after
the required time.

2) Often double clicking is an idiom for select and process
(e.g. select an item from a list and 'ok' the dialog). In
this instance you can treat the two clicks as two separate
stages so that a click will select the item if it's not
already selected and will 'process' if the clicked item is
already selected.  So the first click will cause the item
to be selected and the second to process.  By default this
would mean that the two clicks could be separated by much
longer periods than are traditionally associated with double
clicks.  If you don't want this you can record the time
of the selection and only allow the process within a certain
time of this.

3) You can write a subclass of EventQueue and push it onto the
event queue stack to filter/modify the mouse events at source.
This would effectively give you a single place to do the same
work as in 1) but it would apply to all controls.

Regards

Dave Wathen
Goldman Sachs Asset Management
3rd Floor, Procession House
55 Ludgate Hill
London EC4M 7JN
+44 (0)20-7774-2998

It is not necessary to understand things in order to argue about them.
(Caron de Beaumarchais)


-----Original Message-----
From: Steve Barrett [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 11:20 PM
To: [EMAIL PROTECTED]
Subject: mouse sensitivity issues


I need to be able to adjust mouse sensitivity.  At
least I think I do.  
The complaint is that double clicks aren't
registerring because of very minute mouse movements
between clicks.  I have seen this and it does seem to
be the case.
Is java inheritting the Window's 9x settings?
Is there a Java way of setting this?
I have been crawling through source and can't find a
darn thing about where this is happening.
Any info or links would be appreciated, thanks in
advance!


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to