Re: Re: How to interface to SWT and other beginner questions
Arjan Boeijink <[email protected]> Fri, 24 Sep 2004 00:03:49 +0200
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Peter >> 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 ... ! It shouldn't be difficult to compile nice.swt by hand. >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 Importing a java package requires '.* at the end. import my.java.swt.*; >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 ? This retyping is not needed I think. But the error is caused by either the MainWindow class that cannot be found or it doesn't have a constructor with zero arguments. Arjan ------------------------------------------------------- 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