JFrame フレームを埋める 3 つの方法を見つけました = new JFrame("...") createContentPanel は JPanel を返し、createToolBar は ToolBar を返します。
frame.add(this.createToolBar(), BorderLayout.PAGE_START); //this works and puts the ToolBar above and the ContentPanel under it<br>
frame.add(this.createContentPanel(), BorderLayout.CENTER);
frame.setContentPane(this.createContentPanel()); //this lets the JToolBar hover over the ContentPanel
frame.getContentPane().add(this.createToolBar());
frame.getContentPane().add(this.createContentPanel()); //this only puts the last one into the JFrame
frame.getContentPane().add(this.createToolBar());
そして今、単純な frame.add(...) を使用してフレームを埋めることができるのに、なぜ getContentPane()/setContentPane() メソッドを使用する必要があるのか 疑問に思っています。