private void initSwing() { this.setTitle(title); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setSize(800, 500); this.setIconImage(FreeUtil.getImage("images/logo.png")); this.setContentPane(contentPane); FreeUtil.centerWindow(this); contentPane.add(menubar, BorderLayout.NORTH); contentPane.add(statusBar, BorderLayout.SOUTH); JPanel centerPane = new JPanel(new BorderLayout()); centerPane.setOpaque(true); centerPane.setBackground(FreeUtil.CONTENT_PANE_BACKGROUND); centerPane.setBorder(BorderFactory.createEmptyBorder(2, 0, 0, 0)); centerPane.add(tab, BorderLayout.CENTER); contentPane.add(centerPane, BorderLayout.CENTER); }