[Java-gnome-developer] setting colors on a drawing area
Brought to you by:
afcowie
From: Yair H. <ya...@01...> - 2005-05-07 16:50:50
|
hi i'm using the below code to draw a line on a drawing area (this is the only code relevant to the drawing area). the problem is that the line is always drawn red (unless no color is specified, then it is black) , instead of blue (or any other color i try) public void on_drawingarea_expose_event(ExposeEvent ev) { org.gnu.gdk.Window win = ev.getWindow(); GC gc = new GC(win); gc.setForeground(Color.BLUE); win.drawLine(gc,10,10,100,100); } what do i do wrong? yair |