[jsyn] JSyn applications and Swing
philburk at s...
Fri Jun 29 13:54:25 EDT 2001
Thanks for writing.
----- Original Message -----
From: "Sandra Wilson" <mamscw at b...>
> I've set up an application to create a GUI using Swing.
> This runs fine. I've added a button which should cause a
> random frequency to sound (similar to TJ_Beep, from where
> I've taken the basic code). Importing JSyn is fine, but as
> soon as I use anything from JSyn e.g. Synth.startEngine(0);
> I get loads of error messages.
I'll try to help. Can you cut/copy any of those error messages and paste
them in an e-mail. (MS-DOS will copy selected text to the paste buffer when
the "Enter" key is hit.) Perhaps there is a problem with the classpath, or
the installation of the DLL. Please double check to make sure that JSyn is
> I know that Swing applets and JSyn are not compatible.
The problem is not with Swing per se. The problem is that in order to use
Swing, you have to import a new Java Virtual Machine into the browser as a
JVM plugin. That new JVM does not communicate with other browser plugins the
way the original JVM did. For example, Netscape's JVM has a special feature
called LiveConnect that lets Applets communicate with Netscape plugins. But
if you import a new JVM, say JRE1.3, then that LiveConnect feature is lost.
JSyn should work with browsers that directly support Swing, such as
Netscape6 on Macintosh.
> Is this also a problem for applications using Swing and JSyn?
Several people have written Swing applications that use JSyn. And I use JDK
1.3 most of the time. There should be no incompatibility between Swing and
JSyn. But there may be some bug in JSyn that I don't know about. In any
event I want to solve this problem. Please let us know what happens next.
JSyn,pForth,DSP,ASIC - http://www.softsynth.com
Portable Audio I/O - http://www.portaudio.com
Interaction Server - http://www.transjam.com
More information about the JSyn