slapshot5 wrote:Can subsequent size adjustments of the Deck Editor be persisted? It is way too small on my 1680x1050 screen. I make it bigger, and adjust the widths and heights to something better, but the next time I go in, it has shrunk back to its 1024x768 (or whatever) size.
`
Sorry about that Slapshot. While helping with the deck editor mods I decided to try out a change in window behavior on the user base. My iMac screen is 1920 x 1200 and that is just too wide. I tried to come up with a way to limit the width to just 1400 pixels.
The original code in Gui_DeckEditor looks like this:
- Code: Select all
setSize(1024, 740);
setExtendedState(Frame.MAXIMIZED_BOTH);
}//setupAndDisplay()
`
I could not figure out how to set an extended state of max height and 1400 pixels width. It may not be possible to do so.
My hack starts the screen at min size and if you click on the maximum button it will expand to max height and 1400 pixels width. My code looks like this:
- Code: Select all
setSize(1024, 740);
Rectangle bounds = getBounds();
Dimension screen = getToolkit().getScreenSize();
int maxWidth;
if (screen.width >= 1400) {
maxWidth = 1400;
} else {
maxWidth = screen.width;
}
bounds.width = maxWidth;
bounds.height = screen.height;
setMaximizedBounds(bounds);
`
If someone with more experience can come up with a better solution that would be great.