Re: [Java-gnome-developer] Gnome Library
Brought to you by:
afcowie
From: <fer...@lo...> - 2003-06-03 20:02:59
|
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 |