[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] SWT_AWT on Mac, first impressions

On Sep 29, 2009, at 5:51 AM, Christopher Deckers wrote:

> The simple browser example I attached to bug 246929 should be enough:
> https://bugs.eclipse.org/bugs/attachment.cgi?id=147590
>
> I have more information regarding a nasty issue that a developer who
> is helping me with testing has found. Here is what he has to say:
>
> "
> I had the best results with the J2SE 5.0 64bits (the Mac Mini is a 64
> bits machine) which is:
> java version "1.5.0_20"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_20- 
> b02-315)
> Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_20-141, mixed mode)
>
> At least I could give the focus to the native browser, which is not
> the case when using the latest Java SE 6 64bits which is:
> java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-92, mixed mode)
>
> To click on a button or link in the browser you have to double-click,
> and input fields are not usable at all.
> "
>
> So it seems the browser is unusable under Java 6 because of this focus
> issue. Would it be linked to the embedded Shell not transfering the
> focus issue you mentioned?

I'm using Java 6 on OS X 10.6, not 10.5. I haven't run into any focus  
issues like you describe on Snow Leopard, but that's with my latest  
code I checked in yesterday. I can try it out on Leopard and see what  
happens there.

Grant could probably give more information as to what was happening in  
the Browser that required him to do that. Since the WebView is added  
as a child of the Canvas, clicks and keystrokes would normally go to  
the Canvas and not the WebView inside it unless you transferred focus  
to it manually when the top-level view gets focus.

It seems odd to me that 1.5 would work but 1.6 would not work on  
Leopard, as the AWT isn't that dramatically different from 1.5 to 1.6.

-- S