[Java-gnome-developer] Possibility to built SWING on top uf Java-GTK?
Brought to you by:
afcowie
From: Linuxhippy <lin...@we...> - 2003-01-08 21:47:47
|
Hi there again! My laptop is still broken, I write this mail with my old 15´ 60Hz Monotir ;-) Very often I hear about OpenSource-VMs like Kaffe, GCJ, ORP and many others. Many oft them are supporting AWT none of them have builtin-support for SWING. My IDEA (its only an idea!) is, to make not the same fault as SUN did with SWING (althought SWING is not bad, but its really slow and does absolutly not integrate in the native gui-interface). I thought that it should be possible to reinvent SWING an the top of a native gui-toolkit, but I want to ask you here, because of here are the real gui-gurus! (especally Jeff!!!) This implementation does not need to be exatly 100% compytible, I know this is not possible.... So please let me ask some questions relating to this theme: 1.) Would it be possible to use Java-GTK as the underlaying "platform". I know many things need to be reinvented in SWING style, but its better to code SWING in a "high-level-way" with java-gtk than dealing with native funktions. java-gtk does so many nice things for me (e.g. Memory handling), that I think it would be much easier to start with jgtk than from scratch... 2.) What about events and layouts? a) Would it be possible to widly emulate swing event, using and extending the current java-gtk event-model? b)How would it be possible to recode the swing-layouts using java-gtk. I know that swt has realized some java-like layouts using gtk... Would it be possible too rebuild all the layout-managers using a gtk-layout with fixed position? Would it be possible with boxes and tables? 3.)Is it important to rebuild exactly that heredity-hirachy (I´m sorry for my bad english, I know that word is wrong..) like sun does in swing? I know I not experienced with both Java/JNI/java-gtk enough to start a such project, but so many people are asking, and nobody does begin. This really bothers me so much, so that I want to start. I know I´m always a little bit rash, but so I´m ;-) I want to start this project, if its possible in most parts. I know its a very big amount of work, SWING is very big and SUN did not design SWING to be easy portable to native guis. But I´ve heard of a static-win32 Java-Compilier which translates SWING to native MFC-Programs, so its theoretical possible! Good luck again, Clemens PS: I was able to built Java-GTK on Windows using Cygwin. Hmm, but thats quite a very dirty port. It still requires an X-Server. The whole libraries (without the X-Server) are around ~20Mb (only GTK2, Pango, ZLIB.......). |