private void defineUpperPanel() { upperSubpanel = new JPanel(); upperSubpanel.setLayout(new BorderLayout()); upperSubpanel.setBackground(GuiUtil.FILLER_COLOR); // create and add label createTableLabel(); upperSubpanel.add(tableLabel, BorderLayout.NORTH); // create and add table createTableAndTablePane(); GuiUtil.createCustomColumns(table, TABLE_WIDTH, COL_WIDTH_PROPORTIONS, DEFAULT_COLUMN_HEADERS); JPanel tablePanePanel = GuiUtil.createStandardTablePanePanel(table, tablePane); upperSubpanel.add(tablePanePanel, BorderLayout.CENTER); }