Need some help with my Java Game Dev't

+2 Charles Bautista · August 5, 2014
https://buckysroom.org/photos/users/7973/resized/b6f0585a721fca4a87a3a1e3fc9a43b2.png?6168
You'll see that my background color(in code) is pink. But as you see, it is transparent and only the text appears :( I changed my resolution too. This still happens on an 800x600 resolution.
and even in 32bit,64bit,8bit colors. What should I do?

Post a Reply

Replies

Oldest  Newest  Rating
0 Brandon Elliott · August 13, 2014
Try changing it to this:

getContentPane().setBackground(Color.PINK);


also, yeah you should post the full code instead of taking a screenshot of the code. it's hard to see what's going on
  • 1

Java / Android Development

107,307 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator