Hi list,
I was wondering if it would be possible to change the Icon of my plugin´s
ImagePlus windows from the "microscope" to represent the contents, this
would be nice.
It seems setIconImage would be the method to call, looking to the API docs
I found that the following code might work (imp is a refrence to the
current ImagePlus);
ImageWindow win = imp.getWindow();
win.setIconImage(imp.getImage());
This code is compile without errors, however when the above lines of code
are executed, it seems that execution disappears in never-land, no
exception, no CPU load, ImageJ does no longer
update it´s main window.
What is going on?
When I create a simple BufferedImage, I can setIconImage from that, when I
try to explicitely cast the image returned from getImage to a
BufferedImage, I get an exception, telling that it´s
a sun.awt.ToolkitImage!??
How to do it right?
Thanx
Joachim
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________