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 17:12:50
|
> Joe Osborne wrote: > > Hello Mark Sorry about that Marco. I work on my program until the sun comes up and things look a bit hazy on the screen by that time. ;) > If you create an unmanaged project, you use the GNU > classpath AWT/Swing. > That doesn't work on windows and it currently > doesn't work on linux > either. You have to use a managed AWT/Swing project > and there the > problem starts > (http://javacompiler.mtsystems.ch/frame_faq.html; > second > question) I got rid of JMF and I will have a go at using mplayer. My app only plays sound and no video and no control interface so I didn't use the JMF player window. I just created an instance of the media player bean javax.media.bean.playerbean.MediaPlayer. It plays mp3 files and that's all I need. Ok so I have the following configuration: -Create managed AWT or Swing application project. -add my .java files as a directory (also tried jar but you recommended adding class or java in your mail list) -add one jar file which may program uses as an import which reads an excel spredsheet jxl.jar -select my main class .java file -enable java 1.5 preprocessing (also tried without) -CNI is default (also tried JNI) -don't check "ignore missing references in jars" Here is the compilation output: - compiling sources for Java 1.5 preprocessing C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\JavaCompilerTempa2jenm.out\MainWindow\MainList.java:24: cannot find symbol symbol : class ProgressMonitor location: package swingwtx.swing import swingwtx.swing.ProgressMonitor; There are 16 of these for various classes. I take it these are the classes that I am using that swingWT doesn't have equivalents for in it's library. 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? > I downloaded JMF and tried a little: > - It needs sun classes that are not yet in gcj. You > could add them manually. Where do I put them? Do I need to make changes to any of the gcj files to take acount of the files I add? > - The player window uses AWT or Swing, so I guess it > will be hard to get > that working with swingWT. But you could try... Fortunately I am not using the player window. I just create an instance of the player bean object. > If you invest some time, you will get it working. > But in my opinion, > you're really better off with mplayer. It plays all > existing codecs and > is stable. Thanks for this tip. I am going to check it out. > Check a early release of my current > project: > http://home.zhwin.ch/~trudemar/tmp/VideoAlbum-0.3a win.zip I ran your video album. My system is Windows 2000 2.66GHz 500Mb RAM. It worked with no problems. I know it's an early release but if you would like some feedback I tested it on wmv,mpg,rm and avi. -Explorer only sees mpg and wmv files. -Player plays all 4 but rm didn't have video. It had sound only. My PC doesn't have RealPlayer installed. -mov,mpg,wmv snaps forward or back except wmv doesn't snap forward to exactly the tip of the mouse, it overshoots forward by 10 about seconds -The pause button didn't release -rm didn't snap to -Explorer filters out non video files but video album sees all file types when you add files. I selected a bmp and wav and it froze. You might want to use a file filter for the open file dialog. > If you're interested, I could send you the jar for > the bluetooth remote > control (you need a midp 2.0 device with jsr82 > support (e.g. Nokia > 6230)) ;-) So you can control your PC with a cell phone and see what's on the PC screen on the cell phone display? If I said I wasn't aware of that technology that would reveal my age! I don't know any more about my phone other than how to talk, sms and take pictures and video. I am in South Korea and I haven't seen any Nokia, Sony or anything other than Korean brands so I probably couldn't use this. I am hardly ever far from the PC anyway. But thanks for the offer. Joe ____________________________________________________ On Yahoo!7 Break a world record with Total Girl's Worlds Largest Slumber Party http://www.totalgirl.com.au/slumberparty |