swing: fix gui sometimes starting up with black background