Re: [Java-gnome-developer] Question concerning pixel graphics (fwd)
Brought to you by:
afcowie
From: Markus F. <mar...@t-...> - 2001-11-05 11:27:17
|
Santeri Paavolainen (sjp...@cc...) wrote: >Hmm, if I remember correctly you have to alloc the color from the window's >colormap, since gc needs a pixel value, which in turn is only allocated >(or determined for truecolor displays) at that phase. What happens now is >that the pixel value has a default of 0, which usually is black on indexed >color displays and black on truecolor displays. When I try \.\... GtkWidget w = win.getTopLevel(); GdkColormap cmap = w.getDefaultColormap(); \.\... the application crashes. No idea why... MfG Markus |