I set the size of my JFrame to 1000x500 but it is obvious to me through the use of my drawing methods that the actual size is not 1000x500 but something slightly smaller. Why is this?
JFrame frame = new JFrame("Jumper");
frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
frame.setSize(1000, 500);
frame.add(new Game());
frame.setVisible(true);