Re: [Java-gnome-developer] Java GDK
Brought to you by:
afcowie
From: Jonas B. <jb...@ni...> - 2003-10-30 12:21:38
|
On Tue, 28 Oct 2003 07:00:31 -0500, Jeffrey Morgan=20 <Jef...@Br...> wrote: >> Right now I'm having a lot of problems grasping how to use GDK. In >> effect, what I want to accomplish is that I want to paint in a window. >> Basically in the same way as I would use a javax.swing.JPanel and >> override the paint() method. Can this even be done? As far as I can >> tell, the GDK support isn't finished yet? Could anyone shed some light >> into this? > > Prior to the GTK2 port the GDK implementation was fairly robust. > During the port the primary focus was on the higher level functions > and you are correct inyour assessment that the GDK layer support > is not finished. There is an example of drawing to a window using > the low level GDK functions in src/examples/gtk/mandel but I believe > it is currently broken. It worked in the pre GTK2 days. Elias, the way to do custom components in GTK2 is to have a DrawingArea=20 widget. It's present in java-gnome, too, but currently as Jeffrey said,=20 there's not much that has been done on this front, so you can't do much=20 with it yet, or should I say anything.. =3D) Elias btw have you tried using glade-2 to design the UIs? It works great=20 with java-gnome. For tricky ui:s, you can still choose to create some of=20 the widgets by code. However, as I got a need to write a custom component myself (a complex=20 graph widget for plotting all sorts of data) I thought that I could give=20 it a try to implement the missing methods, or at least the most important= =20 ones. If you don't hear from me on this front in a few weeks then I=20 probably got too busy to finish it. Otherwise, you'll hear from me soon..= =20 wish me luck :) - xkr47 |