Re: [javaCompiler-users] NetBeans and JSwing Layout Support and JMF Support
Status: Beta
Brought to you by:
soapy
From: Marco T. <mt...@gm...> - 2006-09-20 07:20:37
|
Hello Joe Joe Osborne wrote: > I am trying to compile a jar I created using Netbeans > 5.5 and JDK 1.5. > > It uses Swing components available in Netbeans. One of > them is "org.jdesktop.layout.GroupLayout". I > discovered that the compiler uses swingWT and may not > have GroupLayout in it's library because I get a > 'class file not found' error. Read the FAQ, second question: http://javacompiler.mtsystems.ch/frame_faq.html And check the archives as well. There were some AWT/Swing disucssions. Basically, you could summarize it like this: - swingWT is (at least in my opinion) useless out of the box. You've to work on it for your project. No one does, so there's no progress. - GNU classpath AWT/Swing is probably much better, but doesn't work on windows So, if it's a good GUI you wan't, go with SWT. It better protects the GUI thread and looks better (more native) than Swing and AWT anyway (in my opinion). > I am also using Java Media Framework from Sun > (JMF2.1.1e) to play sound. Then you've to compile that into the executable too... > After I redesign my project with swingWT will I > discover that javaCompiler will not compile my project > because it doesn't support JMF? I don't know if JMF compiles. I never used JMF for real applications because its too unstable for me. Instead, I wrapped mplayer into my app ;-) Create a little command line application that does some "hello world" JMF stuff and try to compile it. As I said, you've to compile JMF too because it's an external library... > Can I use the Sun source for JMF to compile to > overcome this? If it's nothing more than some jars and native libs, shure. > Also maybe I can get away with just replacing > GroupLayout - will javaCompiler accept the other Swing > layouts like GridBag, Grid, Border, Box etc? Some of them, yes. But don't expect too much from swingWT. The best thing - as I said -is to write your GUIs in SWT. Actually I'm thinking about removing swingWT from the next version. > How can I find a list of Swing components that have > been mapped to the SwingWT library? Check resources/swingWT-0.87/swingwt-all.jar. Version 0.88 is out by now. But I didn't find better compatibility with it. Marco |