bug with image resize and multiple monitors.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

bug with image resize and multiple monitors.

Airen Zaldívar Peraza
Hi ImageJ team. I have bee trying to fix a bug resizing a window when you
have multiple monitors. Image is opened too small and cannot be resized
vertically. I think this lines on ImageWindow:

GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
Rectangle maxWindow = ge.getMaximumWindowBounds();

dont work properly. I use instead getToolkit.getScreenSize() and redefined
this method. But I cannot update maxWindowBounds (that is updated here,
although this is not a void method) because it has package visibility. So
if I use maximize button throws error. What should I do?

Best regards, Airen

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