http://imagej.273.s1.nabble.com/controlling-size-and-location-of-Console-window-tp5020161p5020171.html
You may want to grep the ImageJ code for where stderr is being piped to this console window. Some of the keywords in this example may be helpful:
), which is kind of a one-shot object. By that I mean, when it’s instantiated I think the window is displayed and the reference to it lost to the larger IJ code but the stderr could indefinitely be piped to it from the local reference.
Good luck, and I’d be curious what you find.
> On Feb 26, 2018, at 9:14 PM, Kenneth Sloan <
[hidden email]> wrote:
>
> Thanks.
>
> Now, I just need to make sure that my customers have upgraded to ImageJ2.
>
> I confess to not tracking this closely - I just noticed that stderr was popping up in the Console window, and could not find any documentation on how to control it.
>
> I saw some threads on making it invisible - that's NOT what I want to do. I want it visible, but I also want it in a corner, out of the way of the main content windows. Putting it at (0,0) is probably the WORST location for my purposes - and I'd just as soon have it display only a few lines (no more than the last 10), unless and until someone pulls it up and enlarges it.
>
> My plugins seem to always be "under development", and I've become addicted to leaving in extensive tracing/logging output to stderr in even the "production" version of the plugin. Also, many of my foundational tools are used in non-ImageJ contexts, so stderr is a kind of standard place to put this stuff.
>
> I don't mind the specific gui - but I do wish this kind of documentation were easier to find!
>
> Again - thank you very much for your prompt reply. Now, I have something to keep me occupied this evening.
>
> --
> Kenneth Sloan
>
[hidden email]
> Vision is the art of seeing what is invisible to others.
>
>
>
>
>
>> On 26 Feb 2018, at 16:40 , Curtis Rueden <
[hidden email]> wrote:
>>
>> Hi Ken,
>>
>>> I would like to be able to control the visibility, location, and
>>> bounds of the Console window, in a Java plugin.
>>
>> Assuming you are talking about ImageJ2's Console window, I post a gist
>> illustrating how to do it here:
>>
>>
https://gist.github.com/ctrueden/29355778db5343b08266dba8d456a790>>
>> Just note that doing this will explicitly tie you to an AWT/Swing UI
>> scenario (won't work headless or with alternative UIs).
>>
>> Regards,
>> Curtis
>>
>>
>> --
>> Curtis Rueden
>> LOCI software architect -
https://loci.wisc.edu/software>> ImageJ2 lead, Fiji maintainer -
https://imagej.net/User:Rueden>> Did you know ImageJ has a forum?
http://forum.imagej.net/>>
>>
>> On Mon, Feb 26, 2018 at 1:57 PM, Kenneth Sloan <
[hidden email]>
>> wrote:
>>
>>> I would like to be able to control the visibility, location, and bounds of
>>> the Console window, in a Java plugin.
>>>
>>> Is this possible?
>>>
>>> I'm making heavy use of the Console during development and debugging, but
>>> I'm trying to layout the screen
>>> for the end user so that the Console is tucked into a corner where it can
>>> be seen, but is neither obtrusive nor mostly hidden by other windows.
>>> Screen space is at a premium.
>>>
>>> I have looked, but can't find a way to get a handle on the Console window
>>> from Java code. Ideally, I'd like
>>> to make it visible by default, and control its size and location.
>>>
>>> --
>>> Kenneth Sloan
>>>
[hidden email]
>>> Vision is the art of seeing what is invisible to others.
>>>
>>> --
>>> 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