Re: [Java-gnome-developer] Gnome Library
Brought to you by:
afcowie
From: Gabriele E. <nz...@ga...> - 2003-06-04 09:06:50
|
Hi Fernando, Thanks for all. I want my application, a GPL P2P Chat with the possibility to live draw ( unfortunatly only in italian ), runs on all system (at the moment I use Swing but look&feel is awful). So I want port my application to SWT, but I want to expand the feature of my application when it runs on gnome for a better system integration. After your answer I think that I have two possibility: 1) Try compiling java-gnome using the GTK port for Win32 ( I try GIMP on windows and it's work very well), so it work on linux, unix and win system; in Italy there are few Mac system ! 2) Using only SWT ( I'm not able to exapand SWT, I'm a 23 years old student of software engineering). > Gabriele, > > > Perhaps I wasn't clear about my question. > > So I try to explain better my question. > > Is it possible to use java-gnome for interact with gnome and SWT for draw > > the GUI in the same application ? > > Altough this should be possible, I wouldn't recomend. SWT and GTK have very > different object models and expect different responsibilities regarding > releasing OS and toolkit resources like handles and bitmaps. It would be very > hard to mix both APIs and have a working, stable application. > > If you need something from Gnome or GTK that SWT won't provide, you have two paths: > > 1. Create a new SWT widget exposing the desired functionality. This may be > trivial but may also be a chalending task. Later think about how your new > widget would be implemented on other SWT targets like Win32, Motif or MacOS. > > 2. Drop SWT at all and use only Gnome and GTK widgets. Later if you need Win32 > support you may try compiling java-gnome using the GTK port for Win32. I think > nobody has done so, but this will happen sooner or later, as Gimp and other big > GTK apps are working on Win32 just fine. > > The reverse is also true: expanding GTK to provide equivalent widgets and the > ones you like on SWT or dropping GTK (and Gnome) altogether. > > > []s, Fernando Lozano > > ---- Gabriele Erba Audendum est: fortes adiuvat ipsa Venus (Tibullo) www.gabriele-erba.it |