>I guess I need X. But what else do I need ?
>Do I need GTK for exemple ? What else ?
>>I guess I need X. But what else do I need ?
>>Do I need GTK for exemple ? What else ?
[quoted text clipped - 4 lines]
> schemes simultaneously? Do they all present the same API to the
> programmer and are exchangeable?
Unfortunately not. At the moment there are 2 major toolkits, GTK (written in
some kind of OO C) and QT (C++). They are not compatible, although efforts
to integrate them in some ways (using the same filechooser, themes, ...)
are underway.
There's also Motif, which used to be the "standard", but no new programs are
written in it. Motif is used for the AWT peers in JDK < 1.5. As of 1.5, AWT
is rewritten to use XLib, which is the lowest level library, that talks
directly to the XServer.
As for primitives, every toolkit has to create it's own widgets, since XLib
doesn't know any; you have to use it in terms of line, shapes, ...
To answer the OP's question: you need motif, if you're going to use the AWT
components.

Signature
Kind regards,
Christophe Vanfleteren
Gédin Frédéric - 13 Apr 2004 09:08 GMT
> There's also Motif, which used to be the "standard", but no new programs
> are written in it. Motif is used for the AWT peers in JDK < 1.5. As of
[quoted text clipped - 6 lines]
> To answer the OP's question: you need motif, if you're going to use the
> AWT components.
This is very surprising! I am using Linux Mandrake 10.0. I am not aware of
having any motif library installed and I am runnning any swing application
seamlessly. Do you mean that swing applications do not rely on AWT
components?
Frederic
Christophe Vanfleteren - 13 Apr 2004 09:35 GMT
>> There's also Motif, which used to be the "standard", but no new programs
>> are written in it. Motif is used for the AWT peers in JDK < 1.5. As of
[quoted text clipped - 12 lines]
> seamlessly. Do you mean that swing applications do not rely on AWT
> components?
It's only the actual AWT components like Button, List, FileDialog, ... that
need Motif (those that have so called "peers", native counterparts).
When you only use Swing, Motif is not needed for the part of AWT that Swing
uses.

Signature
Kind regards,
Christophe Vanfleteren