Prev: Checked Exceptions
Next: Generics annoyance
From: Andrew on 31 Dec 2009 02:51 On 15 Dec, 15:28, Nigel Wade <n...(a)ion.le.ac.uk> wrote: > On Tue, 15 Dec 2009 02:37:54 -0800, Andrew wrote: > > Does anyone know of an X11 GUI toolkit for java that is available on > > both unix and windows? gnome-java is unix-only but is otherwise just the > > sort of thing I am looking for. > I'd assume that gnome-java provides you with Gnome desktop integration, > which by its very nature will not be cross-platform just as Windows > native GUI toolkits will not be. java-gnome looks great but only for POSIX environments since it is built on GTK. I like GTK but GTK is not really fully available for Windoze. And my solution needs to be available on both. I have tried building GTK from scratch and it is really difficult - the web of package dependencies is very hairy! -Andrew Marlow
From: RedGrittyBrick on 31 Dec 2009 04:26 Andrew wrote: > On 15 Dec, 15:28, Nigel Wade <n...(a)ion.le.ac.uk> wrote: >> On Tue, 15 Dec 2009 02:37:54 -0800, Andrew wrote: >>> Does anyone know of an X11 GUI toolkit for java that is available on >>> both unix and windows? gnome-java is unix-only but is otherwise just the >>> sort of thing I am looking for. > >> I'd assume that gnome-java provides you with Gnome desktop integration, >> which by its very nature will not be cross-platform just as Windows >> native GUI toolkits will not be. > > java-gnome looks great but only for POSIX environments since it is > built on GTK. I like GTK but GTK is not really fully available for > Windoze. Isn't wireshark dependent on Gtk? http://www.wireshark.org/docs/wsdg_html_chunked/ChUIGTK.html I use Wireshark on Windows. Ditto Gimp. What problems do you have with Gtk on Windows? -- RGB
From: Andrew on 5 Jan 2010 18:15 On 31 Dec 2009, 09:26, RedGrittyBrick <RedGrittyBr...(a)spamweary.invalid> wrote: > Andrew wrote: > > On 15 Dec, 15:28, Nigel Wade <n...(a)ion.le.ac.uk> wrote: > >> On Tue, 15 Dec 2009 02:37:54 -0800, Andrew wrote: > >>> Does anyone know of an X11 GUI toolkit for java that is available on > >>> both unix and windows? gnome-java is unix-only but is otherwise just the > >>> sort of thing I am looking for. > > >> I'd assume that gnome-java provides you with Gnome desktop integration, > >> which by its very nature will not be cross-platform just as Windows > >> native GUI toolkits will not be. > > > java-gnome looks great but only for POSIX environments since it is > > built on GTK. I like GTK but GTK is not really fully available for > > Windoze. > > Isn't wireshark dependent on Gtk?http://www.wireshark.org/docs/wsdg_html_chunked/ChUIGTK.html > I use Wireshark on Windows. Wireshark is an example of a multi-OS app that is built on GTK. There are other examples. I have used pan, a USENET reader, on Windoze. It too is built on GTK. The pan MSI comes with GTK just in case it is not on your system. So it can be done. > > Ditto Gimp. > > What problems do you have with Gtk on Windows? Pan is an example of an app that does it well, but not all apps are as good. It is very hard to build GTK from scratch for Windoze since there are so many dependencies to chase down. Try picking up GTKv2 for Windoze ready-built. Even if you can find one will be it be at the version number you need? Probably not. -Andrew M.
From: Andrew on 5 Jan 2010 18:18 On 15 Dec 2009, 15:28, Nigel Wade <n...(a)ion.le.ac.uk> wrote: > On Tue, 15 Dec 2009 02:37:54 -0800, Andrew wrote: > > Does anyone know of an X11 GUI toolkit for java that is available on > > both unix and windows? gnome-java is unix-only but is otherwise just the > > sort of thing I am looking for. > > > Regards, > > > Andrew Marlow > > Is there something wrong with Swing? If you want a cross-platform > solution why not use the cross-platform GUI that comes as part of the > standard API? I don't like swing. IMO it looks horrible, grappling with stuff having to be on the EDT is a pain and it is not automatically networked, unlike X11-based toolkits.
From: Lew on 5 Jan 2010 18:34
Andrew wrote: > I don't like swing [sic]. IMO it looks horrible, Look and feel is configurable. > grappling with stuff having to be on the EDT is a pain and That's common to GUIs, including X11 GUIs, actually. Also, it's really quite easy to manage the Swing EDT, so it's not a pain at all. 'invokeLater()' and 'SwingWorker' make it soooo easy! I don't know why anyone regards it as difficult. > it is not automatically networked, unlike X11-based toolkits. Not sure what you mean by "automatically networked". If Swing is running on an X11 platform, then you get whatever advantage to X you want by dint of that. Java itself is an inherently networked language, so whatever doesn't come the way you want it is easily programmed to be so. |