Thread: RE: [Java-gnome-developer] Java GDK
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2003-10-28 12:01:51
|
> I have been messing around a bit with Java-GNOME, and I must > say that I > enjoy it a lot. Thanks. > 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. -Jeff |
From: Jeffrey M. <Jef...@Br...> - 2003-11-04 20:26:56
|
Thanks for the patch. It is in CVS. Everybody; it is time. I have tagged the cvs for the next release. I know there are numerous bugs remaining but they will have to wait 8-( Thanks to all of you who have contributed patches, reported bugs, or provided feedback. I hope to have this release out within 24 hours. Luca, I will address the items you reported as soon as this release goes out. What lies ahead? For the next release I hope to continue to address bugs, but I also wish to start adding functionality. There are several areas in which the bindings could be expanded. Please let me know which of the following items you would like to see and in what order: GConf gnome-print Bonobo panel-applet - requires Bonobo gnome-vfs enhancements to gnomecanvas -Jeff > On Tue, 04 Nov 2003 15:07:31 +0200, Jonas Berlin > <jb...@ni...> > wrote: > > > Here's the first patch, which adds all missing java methods for > > Well lol at me.. I forgot the url :) > > http://xkr47.outerspace.dyndns.org/patches/java-gnome/cvs-0311 04-6-GC-javamethods.diff - xkr47 |
From: Luca De R. <pie...@li...> - 2003-11-04 20:58:45
|
Il mar, 2003-11-04 alle 21:26, Jeffrey Morgan ha scritto: > Thanks to all of you > who have contributed patches, reported bugs, or provided > feedback. I hope to have this release out within 24 > hours. Great, and I'm glad I've helped a bit. > Luca, I will address the items you reported as soon as > this release goes out. Nice. > Please let me know which of the following items you would like > to see and in what order: My preferred order is: gnome-print gnome-vfs Bonobo panel-applet (does this include notification area?) GConf and gnomecanvas Luca. -- Luca De Rugeriis <pie...@li...> |
From: Mark H. <mh...@ca...> - 2003-11-05 09:08:00
|
1. Bug fixes, memory leak detection/fixes (will mostly come from user bug reports for now, I guess). 2. Implementation of gtk-demo in java-gnome gconf - essential (IMHO) for any large application for storing state at least. bonobo - I'd really like to see my bugviewer app running in galeon :) gtkhtml - I think it would be useful. I'd be interested to hear from people who use the c version already. gnome-print - I'd say leave it out for now. I think upstream are making some big changes to it, or planning to. Ximian have a huge patch to rewrite this to look far better, but it only works on systems with cups. There's been quite a bit of debate about it on the Debian mailing lists recently. I'm busy at uni at the moment so unfortunately should not help with java-gnome. Things will hopefully be different in December though. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |
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 |
From: Elias M. <el...@al...> - 2003-10-30 12:54:08
|
Jonas Berlin wrote: > Elias, the way to do custom components in GTK2 is to have a > DrawingArea widget. It's present in java-gnome, too, but currently as > Jeffrey said, there's not much that has been done on this front, so > you can't do much with it yet, or should I say anything.. =) Yes, I figured as much, but then I realised that there didn't exist any methods to actually draw in it. It was kind of a bummer. :-) > Elias btw have you tried using glade-2 to design the UIs? It works > great with java-gnome. For tricky ui:s, you can still choose to create > some of the widgets by code. Yes, that's what I used. It works great by the way, even though I would like some more control as to on which handler class the callbacks are called. Maybe there is, if so I'd love to know about it. I had to read the source and try to figure out how it was weant to work. Good work still. :-) > However, as I got a need to write a custom component myself (a complex > graph widget for plotting all sorts of data) I thought that I could > give it a try to implement the missing methods, or at least the most > important ones. If you don't hear from me on this front in a few weeks > then I probably got too busy to finish it. Otherwise, you'll hear from > me soon.. wish me luck :) Good luck! I'll be waiting for it. :-) The test application I intended to write while learning java-gnome was a small paint program. And for that you need graphics methods. :-) Regards Elias |
From: Jonas B. <jb...@ni...> - 2003-11-04 13:07:54
|
On Thu, 30 Oct 2003 14:21:34 +0200, Jonas Berlin <jb...@ni...>= =20 wrote: > 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 giv= e=20 > it a try to implement the missing methods, or at least the most=20 > important ones. Here's the first patch, which adds all missing java methods for functions= =20 provided by the native GDK GC. This doesn't add much value currently, but= =20 will be nice to have later when I get the Drawable methods implemented. I= =20 wanted to provide this patch separately, to make future patches more=20 comprehensible. Jeffrey, could you check it and put it into cvs if you find it acceptable= .=20 If you want to discuss the code, that's ok with me, but it should all be=20 pretty simple. If you feel some other active java-gnome developer should=20 be contacted instead, please inform me, thanks =3D) - xkr47 |
From: Jonas B. <jb...@ni...> - 2003-11-04 13:25:33
|
On Tue, 04 Nov 2003 15:07:31 +0200, Jonas Berlin <jb...@ni...>= =20 wrote: > Here's the first patch, which adds all missing java methods for Well lol at me.. I forgot the url :) http://xkr47.outerspace.dyndns.org/patches/java-gnome/cvs-031104-6-GC-jav= amethods.diff - xkr47 |