[Java-gnome-developer] DrawingArea or Drawable
Brought to you by:
afcowie
From: Breizh M. S. <fra...@bm...> - 2006-06-08 09:21:31
|
Hi Everybody ! I am trying to use a DrawingArea but I do not know how to. Is there any documentation about it somewhere ? This the code I am trying int width,height; org.gnu.gdk.Window GdkWindow = drawingarea.getParentWindow(); width = GdkWindow.getWidth(); height = GdkWindow.getHeight(); GdkWindow.drawLine(0,0,100,100); drawingarea.setBackgroundColor(StateType.ACTIVE,Color.BLACK); drawingarea.show(); window.showAll(); But there is nothing to display. What's wrong ? Thanks Fanch. |