JFrame « JProgressBar « Java Swing Q&A





1. Running a JFrame with a JProgressBar    stackoverflow.com

public void myMethod {
   MyProgessBarFrame progFrame = new MyProgressBarFrame(); // this is a JFrame
   progFrame.setVisible(true); // show my JFrame loading

   // do some processing here ...

2. Using progress bar with jframe    forums.oracle.com

} } } my progress window is being initiated and being put into a new thread as below: ProgressWindow pWindow = new ProgressWindow(album, inProgress); pWindow.setVisible(true); Thread t1 = new Thread(pWindow); t1.start(); My problem is that my actionperformed function is never being called despite my cancel button being clicked. Can anybody tell me why? Edited by: Albinoswordfish on Feb 5, 2009 9:34 ...