Login  Register

Re: controlling size and location of Console window

Posted by ctrueden on Feb 26, 2018; 10:40pm
URL: http://imagej.273.s1.nabble.com/controlling-size-and-location-of-Console-window-tp5020161p5020165.html

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