So I’m making a graphics app (will post it later…) and everything was laid out fine until I started removing ambiguity on the locations of panels etc… to make it a little ‘nicer’.
So I at some point added:
CONTENT_WIDTH = topFrame.getContentPane().getBounds().height;
CONTENT_HEIGHT = topFrame.getContentPane().getBounds().width;
And at some (later) point when I launched the app again everything was messed up!
There’s a bug in the above two lines, an obvious one. It’s the kind of bug that makes you face-palm yourself and/or groan “wtf!?”. Can you see it?
Took me half an hour to find this puppy… — face-palm indeed!