Hi,
I'm struggling with a small project.
I have 2 jFrames. The first frame has a button that...
- Display's the second frame containing a progressbar
- Starts a heavy processing
thread
I need to update the progressbar on the second jFrame, from a thread started on the first jFrame.
I have 2 problems:
- How do I update the progressbar?
- When the button is clicked, an empty second frame is displayed with no controles. The controles are only rendered/shown, after the large thread process is finisshed...
I've attached to this post a small screenshot, showing the main idea ...
Source code:
Button action on the first frame:
The code of the thread class
Second jFrame:
Does anyone have any idea's ?
Thanks
John