Re: Viewing images in full screen mode

Posted by dscho on
URL: http://imagej.273.s1.nabble.com/Viewing-images-in-full-screen-mode-tp3687124p3687125.html

Hi,

On Sat, 21 Aug 2010, Xiangfei wrote:

> Hi All,
> I've encountered a question regarding viewing images in full screen
>
> Here is my situation:
> I have a macro that will read in data and produce a graph with the data
> provided, I want to be able to view the graph in full screen mode (like a
> slideshow picture, without seeing the imageJ windows)
>
> What I tried:
> *setDisplayMode<http://download.oracle.com/javase/1.4.2/docs/api/java/awt/GraphicsDevice.html#setDisplayMode(java.awt.DisplayMode)>
> *(DisplayMode<http://download.oracle.com/javase/1.4.2/docs/api/java/awt/DisplayMode.html>
>  dm)
> *setFullScreenWindow<http://download.oracle.com/javase/1.4.2/docs/api/java/awt/GraphicsDevice.html#setFullScreenWindow(java.awt.Window)>
> *(Window<http://download.oracle.com/javase/1.4.2/docs/api/java/awt/Window.html>
>  w)
> from the GraphicDevices class,
> http://download.oracle.com/javase/1.4.2/docs/api/java/awt/GraphicsDevice.html
>
> Please kindly inform me how to achieve full screen mode on the graph
> produced.

You talk about a macro, but then about using the Java API. That is a
little bit confusing, as you cannot call the Java API from a macro.

Anyway, the methods you found work well if you use them _before_ showing
the window.

Hth,
Johannes