Re: [javaCompiler-users] NetBeans and JSwing Layout Support and JMF Support
Status: Beta
Brought to you by:
soapy
From: Joe O. <joe...@ya...> - 2006-09-21 20:22:17
|
Dear Marco Your last reply was probably less than an hour. I greatly appreciate that. You've almost got me converting to SWT but I would still like to exhaust the alternatives if at all possible. > swingWT mapps AWT/Swing to SWT. But not everything > is mapped... > http://javacompiler.mtsystems.ch/frame_faq.html, > second question > > > So this is where I need help. > > > > This is what I am guessing I have to do: > > 1-Get these classes as java source codes. > > 2-Get the swingWT as source. > > 3-Put the classes somewhere in the swingWT > directory > > hierarchy. (src folder) > > 4-Add something to the swingWT main class so they > are > > seen. > > 5-Compile them to a jar. > > 6-Compile the jar to an object file. > > 7-Replace the original swingWT object and jar > files > > with the ones I modified. > > > > Is this what I have to do? > > No. You have to get the swingWT source and add all > classes/methods you > still need. Internally you will work with SWT, but > you simulate the > AWT/Swing API to outside. > Change directly to SWT... It's easier... I am confused. You say 'No' but then you seem to imply 'yes' in the sentence that follows. Doesn't my (1,2,3)==Your"You have to get the swingWT source and add all classes/methods you still need" Which ones are right/wrong 1,2,3,4,5,6,7? I think the part I need clarification on is the word "add". Add the ones that have the "cannot find symbol"? Add them how exactly. If not like I wrote above then how? Add them where? To the swingwt-all.jar Can you give me more details? I am not a professional programmer. I just learned JSwing and NetBeans and have been programming Java for only 6 months. Before that I did C and Fortran nearly 20 years ago. It's taken me 6 months to write only 3500 lines of code and a lot of that is either IDE auto generated or templates from Java Almanac. So you can see I am a beginner. Let me rephrase my understanding of what you are saying. Say the compilation tells me there are "cannot find symbol" errors for 6 classes that I am using. I go and get those 6 class files - say from Sun's JDK or wherever thay are. I put them in the swingwt-all.jar file which is in the swingWT-0.87 directory. Is that right? Where do I put them exactly. Can you be more specific considering I am relatively new at this. I had a look at the SwingWT site and I read this: "Unlike Swing, SwingWT drives native peer widgets for your platform from SWT" - Ich verstehe dieses ganz weniger als ich Chinesen verstehe. You have said it's easier to convert my program to SWT. At the rate I go that may take months. Ich bin so langsam wie eine Schildkröte, die in Schnapps schwimmt. Debugging is a killer. If all I have to do is get some class files, put them in the right place and that's it then that seems a lot faster in concept. Ah please don't write instructions back to me in German. I haven't used that language in 20 years either. Your English is so good, even when I saw your spelling of "sure" I didn't realize your first language was not English. I thought it was new slang. I teach English to Koreans here. They find it so difficult to learn. That's what my program is for, learning English for Koreans. Six months ago I was looking for an IDE to use. I bypassed JBuilder and Eclipse in favor of NetBeans because I thought it was much easier and faster to get used to. I thought even Oracle's Java IDE was better than JBuilder and Eclipse. I guess now I still should have chosen Eclipse and SWT. At the time I wasn't aware there were different GUI libraries like SWT and Swing. Have you heard of Excelsior Jet? Jet and your program are the only two in the whole world that compile java to exe for Windows. These are the prices for Jet: Enterprise $4,500 Professional $2,300 Standard $1,200 Pretty expensive isn't it? Joe ____________________________________________________ On Yahoo!7 Messenger - Make free PC-to-PC calls to your friends overseas. http://au.messenger.yahoo.com |