Those two lines are unnecessary since a JFrame's default layout is BorderLayout. All you need is frame.add(component);
Fair enough, but I think his point was that there's no need to manually account for the insets of the frame, rather you should just set the size of your *content* pane, since that's what you'll render to.
When not doing games I usually used frame.setContentPane(myPanel) since myPanel was always some Container subclass. Saves on one nested component!!!!!!!!!!!!1