Re: How to interface to SWT and other beginner questions

"Peter Sommerfeld" <[email protected]> Thu, 23 Sep 2004 23:10:56 +0200
Newsgroups gmane.comp.lang.nice.general
Message-ID <000901c4a1b1$d37eea90$0201a8c0@mojo>
Hi Daniel !

Daniel Bonniot wrote:
> Peter Sommerfeld wrote:
> > Second: I have to interface SWT. The example
>> on the wiki runs with a niceswt.jar which I cannot
>> find.
>
> Sorry, I'm not sure if it is publicly accessible at the moment. The
> source code is at http://packages.sourceforge.net/nice.swt.zip, and you
> can build it with ant (you'll need swt.jar too).

Well, in that case I have to dig into ant .:-(  I will see later ... !

For now I'm looking for a workaround. I have most
of the functionality I need from swt in an eclipse
java project. The nice project properties provide
a link to other projects in its project preferences
which I've checked. Now I can write witout
compiler complains:

    package my.nice.main // my nice package
    import my.java.swt      // my java package

But wen trying to rewrite

    MainWindow MainWindow() = native new MainWindow();

I get "ignoring retyping because MainWindow was not found.
What is wrong here or is this workaround flawded  at all  ?

Cheers, Peter


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php