So I'm working on a school project setting up a GUI, and I can't seem to get rid of this problem. Initially I had an issue trying to get the frame background to be a certain color; I was unable to color the frame itself so I just added another panel inside the frame and colored it. Now that I've got the colored frame in, there are two white bars that appear on the bottom and top of the panel that I can't get to go away. I'll include the code below if anyone wants to run it and see what I'm talking about. Just an FYI: I'm using eclipse.