JProgressbar invisible till after task is completed

I am writing a java client-server application to transfer files from server to client. I need to show the download progress in the GUI but the download window I have gets filled up only after the entire task is completed.The main GUI window calls the download method in the client program and that method in turn starts the download page.Ideally the JProgress in the download page should update as the server sends progress updates.No threads are used on the client side.

Download Page:

`private JPanel contentPane;

public JProgressBar progressBar = new JProgressBar();`

The progressBar...

Read More »

By: StackOverFlow - Friday, 9 November

Related Posts