Re: getImage exception

Hi Paul,

>   getImage is getting called and not returning.  But...you identified
> the problem.  The display is not mapped to the screen.  I want to take
> the image and display it on my own panel (which implements drag and
> drop)...I discovered it is much easer to display an image on a panel
> that's DnD enabled than to retrofit the VisAD stuff to support DnD.  So
> my idea was to make my DisplayImplJ2D d, get the image, pass it to my
> panel without actually adding d.getComponent() to the screen.  So now
> I've traded one problem for another.  Some days, that's progress :)

Perhaps you need to construct a DisplayImplJ2D for off-screen
rendering.  The constructor is:

  public DisplayImplJ2D(String name, int width, int height)

See visad/examples/Test52.java for an example of calling
getImage() for an off-screen DisplayImplJ2D.

Cheers,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html