I've encountered a problem that I've also seen in a few completed Java games

First off, I'm making an app using regular Java2D/Graphics2D setup

So my problem is that there's a border on the right hand side of my app and the bottom of my appIt's light greyI don't know why it exists. My JFrame is the same dimensions of my Game and everything, but for some reason there's this region where nothing is drawn and it looks unprofessional

(Ran the code, messed around a bit)Has something to do within your Game class, thinking in your draw method since it's the only "visible" method being called upon while rendering.Try messing around with your Dimensions by a few increments in the Game class yet?

Yeah, I don't quite understand it, but hey, it works! It doesn't even mess up where things are drawn, as in if your width is 350 and your height is 200, drawing at (349, 199) still renders at the bottom right corner.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org