Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / April 2004

Tip: Looking for answers? Try searching our database.

minimum requirement for a java GUI application on linux ?

Thread view: 
dpr - 10 Apr 2004 21:21 GMT
What is the minimum requirement to use a java GUI on linux ?

I guess I need X. But what else do I need ?
Do I need GTK for exemple ? What else ?

Thanks,
John.
Andrew Thompson - 10 Apr 2004 23:24 GMT
> What is the minimum requirement to use a java GUI on linux ?

<http://java.sun.com/getjava/>

Signature

Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

Roedy Green - 11 Apr 2004 05:10 GMT
>I guess I need X. But what else do I need ?
>Do I need GTK for exemple ? What else ?

How is it that on Linux it is possible for so many different windowing
libraries to co-exist?  There must be some basic set of primitives
they all use??  Do they let you see results from several different
schemes simultaneously?  Do they all present the same API to the
programmer and are exchangeable?

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Christophe Vanfleteren - 11 Apr 2004 08:48 GMT
>>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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.