private void initProgressBar(){

        progressBar = new JProgressBar();
        progressBar.setSize(frame.getWidth()/2,25);
        progressBar.setStringPainted(true);

        progressBar.setMaximum(100);
        progressBar.setMinimum(0);
        progressBar.setValue(0);

        frame.add(progressBar);
    }