Area viewer: Fixed several issues

- fixed some graphical glitches when running low on memory
- added work-around for known Java bug in Swing's layout managers