JComponent () { JComponent component = super.createCenterPanel(); MyPanel panel = new MyPanel(); panel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); panel.add(component, BorderLayout.CENTER); panel.add(createFileNamePanel(), BorderLayout.SOUTH); return panel; }