classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches]: Patch: JTree clicking


From: Thomas Fitzsimmons
Subject: Re: [cp-patches]: Patch: JTree clicking
Date: Wed, 20 Jul 2005 14:08:26 -0400

Hi,

On Fri, 2005-07-15 at 13:35 -0400, Lillian Angel wrote:

> +         Rectangle bounds = BasicTreeUI.this.getCellBounds(x, y,
> cell);
> +         if ((clickY >= (y - 10) && clickY <= (y + bounds.height +
> 10))
> +               && (clickX >= x && clickX <= (x + bounds.width + 25)))

Where do these constants come from?  Shouldn't they be calculated based
on the cell's bounds?

Tom






reply via email to

[Prev in Thread] Current Thread [Next in Thread]