Login  Register

Re: ImageJ - image window

Posted by John Hayes on May 15, 2014; 4:40pm
URL: http://imagej.273.s1.nabble.com/ImageJ-image-window-tp5007749p5007754.html

Hi,

I believe you will want to copy ij.gui.ImageWindow to something like ij.gui.JInternalImagePane and extend JInternalPane instead of java.awt.Frame. You will also have to make a JImageCanvas that mimics ij.gui.ImageCanvas but as a JCanvas instead of java.awt.Canvas and change the appropriate sections in JInternalImagePane. You’ll also probably have to override the appropriate paint and update methods. Then, you’ll have to have some class that is your main JDesktopPane that would contain the respective JInternalImagePanes (like ij.ImageJ) that you start from your main application.

HTH, and best,

John

Le 15 mai 2014 à 18:27, Student1 a écrit :

> Hi,
> Thank you for such a quick reply. I would still like to attempt this, even though I do know it contains a lot of work. I am just a little unsure on how to actually start this. I have created most of the imageJ functionality like opening, saving, reading, etc interface by myself but the only thing that is of problem is the image window where imageJ displays the image. I don’t know exactly how to start with this. Any help would really be appreciated.  
>
> Thank you.
>
> Mariam Dost
>
>
> On May 15, 2014, at 10:17 AM, John Hayes <[hidden email]> wrote:
>
>> Hi,
>>
>> Normally in Java this is done with JDesktopPane, JInternalPane, etc., with Swing: http://www.java-tips.org/java-se-tips/javax.swing/how-to-create-a-virtual-desktop-in-your-applic.html
>>
>> However, note that ImageJ’s main frame and ImageWindow class are AWT and not Swing, so I think this may be a lot more work than you anticipate.
>>
>> HTH, and best regards,
>>
>> John
>>
>> Le 15 mai 2014 à 17:56, Student1 a écrit :
>>
>>> Hi,
>>> I am making a customized GUI for imageJ, where everything is contained within the desktop pane. I want the image window to be an internal frame within my desktop pane. I was wondering if anyone knows how to do this.
>>>
>>> Thanks in advance.
>>>
>>> Mariam Dost
>>> --
>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html