/** Part of the constructor, it builds and places the core components of the GUI on-screen. */ private void buildGUI() { // Settting the JMenuBar setJMenuBar(jmbMenu); setDefaultCloseOperation(EXIT_ON_CLOSE); setTitle("Tika Test Application"); this.setSize(600, 400); jdMain = new JDesktopPane(); jdMain.setDoubleBuffered(true); JScrollPane jspDesktop = new JScrollPane(jdMain); getContentPane().add(jspDesktop, BorderLayout.CENTER); // Set the GUI to visible setVisible(true); }