public void setUpPanel() { this.scrapePanel = new JPanel(); this.scrapePanel.setBorder(BorderFactory.createTitledBorder(Constants.URL_SCRAPE)); // this.scrapePanel.setBackground(Color.darkGray); this.scrapePanel.setLayout(new GridBagLayout()); this.personalPanel = new JPanel(); this.personalPanel.setBorder(BorderFactory.createTitledBorder(Constants.PERSONAL_INFORMATION)); // this.personalPanel.setBackground(Color.darkGray); this.personalPanel.setLayout(new GridBagLayout()); super.getPanel().setLayout(new GridLayout(2, 1)); super.getPanel().add(this.scrapePanel); super.getPanel().add(this.personalPanel); }