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

Answer by DougW for GUI objects not showing in Java on Mac

$
0
0

I could be wrong--been a long time since I've done a GUI in java--but I'm guessing your issue is making the JFrame visible before you finish adding elements. I think you need to either do that afterwards, or call update on the frame.

EDIT - Also, not sure setting the layout to null is a good idea. I've always used GridBag, but it might lose its default if you set it to null.


Viewing all articles
Browse latest Browse all 5

Trending Articles



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