Nathan Stevens wrote:
>
> I was wondering would it be possible to link the JDK to
> other Graphical libaries such has Qt, Gnome etc.
If your goal is access to these libraries from your app, you need to
look into the Java Native Interface. If, OTOH, your goal is to redo the
various Java components using Qt (or whatever) components instead of
Motif components, then there's more to it than linking: you've got to
write peer interfaces for a bunch of Java components.
Not that I've ever tried it, but if you really want to use a different
graphical toolkit, I think it would require something like this:
1) Write your own implementations of all of the java.awt.peer.*
interfaces using Qt (or whatever).
2) Write your own subclass of java.awt.Toolkit that uses your
implementations.
3) With all that stuff in your CLASSPATH, set the system property
awt.toolkit to the classname of your Toolkit class.
It's a lot of trouble, and a bit of a dead end if (as I suspect) the
ascendancy of Swing makes the AWT components irrelevant.
Nathan Meyers
[EMAIL PROTECTED]