[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Application using SWT won't accept focus on Mac OS X

On 16.7.2003 0:40 Uhr, in article akurtz0-D2204F.17404815072003@xxxxxxxxxxx,
"Andrew Kurtz" <akurtz0@xxxxxxxxxxxxx> wrote:

> Hello,
> 
> I've started experimenting with SWT to use in place of Swing on Mac OS
> X, but I've run into a problem right at the beginning.
> 
> When I run a small example program such as some of the snipits or the
> ImageAnalyzer example the application will not accept focus nor any
> mouse interaction (other than the window control buttons).
> 
> The application compiles fine and it runs, but I don't get an icon in
> the Dock and clicking on the application window does not bring the
> application to the front.

You'll find the answer in the SWT FAQ
(http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/f
aq.html, look for question "On carbon, how do I run an SWT application from
the command line?")

In addition, I'm working on an alternative solution:
In recent builds you can find an SWT launcher "java_swt" inside the
Eclipse.app bundle (Eclipse.app/Contents/MacOS/java_swt).
Its a replacement for /usr/bin/java and it should be used when running an
SWT application.

I will update the FAQ soon...

--andre