<div dir="ltr">Hi Andy,<div><br></div><div><div>> I am trying to use ImageJ2 as a tool in a larger application which is</div><div>> built using Swing windows.</div></div><div><br></div><div>The ImageJ2 API is built to be UI agnostic, so you can use it with Swing, SWT, or any other widget toolkit of your choice.</div><div><br></div><div><div>> If I use and IJ.ImageJ object it displays but not in my JFrame.</div></div><div><br></div><div>The class ij.ImageJ is part of ImageJ1. More generally: package prefix ij corresponds to IJ1, whereas package prefixes net.imagej and org.scijava correspond to ImageJ2. The ImageJ1 classes are written to use Java AWT, and have many limitations when it comes to their use with other toolkits and environments.</div><div><br></div><div><div>> My question: Is there a message thread that covers this I can read?</div><div>> Does someone have a sample app or suggestion they care to share? </div></div><div><br></div><div>There is not a lot of explicit documentation about the structure yet. The closest is this page:</div><div><br></div><div>* <a href="http://imagej.net/Modularity">http://imagej.net/Modularity</a></div><div><br></div><div>Which is not very fleshed out.</div><div><br></div><div><div>> I would not mind just running the ImageJ app and having the output</div><div>> sent to my JFrame, if this is an option already built in to ImageJ.</div></div><div><br></div><div>If you are more specific about what you are trying to achieve, and can share some code, that would help in giving you more concrete suggestions about how to proceed.</div><div><br></div><div>Regards,</div><div>Curtis</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 14, 2015 at 4:04 PM, Andrew J Askey <span dir="ltr"><<a href="mailto:AJAskey@raytheon.com" target="_blank">AJAskey@raytheon.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font size="3" face="Trebuchet MS">Hi. I am trying to use ImageJ2 as a tool
in a larger application which is built using Swing windows. I want
to display the windows from ImageJ inside of one of my application JFrame
windows (could be some other component if that works better). I have
had some luck creating an ImageCanvas and adding to my layout. This
opens the ImagePlus object and appears to read the mouse correctly. But
any drawing does not show up. If I use and IJ.ImageJ object it displays
but not in my JFrame. Funny thing is that I can draw on my window
frame and it shows up in the standard ImageJ window (so reads/input are
mapped correctly but writes/out are not).</font>
<br>
<br><font size="3" face="Trebuchet MS">My question: Is there a message
thread that covers this I can read? Does someone have a sample app
or suggestion they care to share? </font>
<br>
<br><font size="3" face="Trebuchet MS">For a simpler approach, I would not
mind just running the ImageJ app and having the output sent to my JFrame,
if this is an option already built in to ImageJ.<br>
</font>
<br><font size="3" face="Trebuchet MS">Thanks.</font>
<p><font size="2" face="Arial"><b>Andy Askey</b></font>
<br><font size="2" face="Arial">Software Engineer - RME<br>
Intelligence, Information and Services<b><br>
Raytheon Company</b></font>
<br><font size="2" face="Arial"><a href="tel:%2B1%C2%A0720.858.4183" value="+17208584183" target="_blank">+1 720.858.4183</a> (office)</font><font size="2" color="blue" face="sans-serif"><u><br>
</u></font><a href="mailto:AJAskey@raytheon.com" target="_blank"><font size="2" color="#808080" face="Arial"><u>AJAskey@raytheon.com</u></font></a>
</p><p><a href="http://rspace.app.ray.com/profiles/html/profileView.do?uid=72577" target="_blank"><font size="2" color="red" face="Arial"><b><u>RSpace
Profile</u></b></font></a><font size="3"><br>
</font>
<br><img src="cid:_1_09EEA45C09EEA1F00073CA5087257EC0">
<br><font size="3"><br>
</font><img src="cid:_1_09EEA8F809EEA68C0073CA5087257EC0" alt="Raytheon Sustainability"><font size="3"><br>
</font><font size="1" face="Arial"><i>This message contains information that
may be confidential and privileged. Unless you are the addressee (or authorized
to receive mail for the addressee), you should not use, copy or disclose
to anyone this message or any information contained in this message. If
you have received this message in error, please so advise the sender by
reply e-mail and delete this message. Thank you for your cooperation.</i></font>
<br>
<br>
</p><p></p><br>_______________________________________________<br>
ImageJ-devel mailing list<br>
<a href="mailto:ImageJ-devel@imagej.net">ImageJ-devel@imagej.net</a><br>
<a href="http://imagej.net/mailman/listinfo/imagej-devel" rel="noreferrer" target="_blank">http://imagej.net/mailman/listinfo/imagej-devel</a><br>
<br></blockquote></div><br></div>