Quantcast
Channel: GUI objects not showing in Java on Mac - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by Carl Smotricz for GUI objects not showing in Java on Mac

$
0
0

There are some rules about how you should never touch Swing objects from outside the Swing thread once they've been realized. I always ignore these rules, but it could well be you've been bitten by them under Mac OS.

As a step in the officially right direction, try to not do setVisible() until you've assembled the whole thing, i.e. at the bottom of the constructor.

Reference material: http://www.math.vu.nl/~eliens/documents/java/tutorial/ui/swing/threads.html


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>