public ReportWindow(String reportText){

            new JFrame();
            Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
            setSize(500,250);
            setResizable(false);
            setLocation(screenSize.width/2-getWidth()/2, screenSize.height/2-getHeight()/2);
            setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            getContentPane().setLayout(null);
            setResizable(true);

            initTextArea(reportText);
            initButton();
            addComponentListener(new ComponentAdapter() {
                @Override
                public void componentResized(ComponentEvent e) {
                    super.componentResized(e);
                    scrollPane.setBounds(10, 10, getWidth() - 25, getHeight() - 90);
                    buttonOK.setLocation(getWidth()/2-buttonOK.getWidth()/2, getHeight()-65);
                }
            });
        }