I would like for the GUI/JFrame of my Java application to display meaningful loading messages as is commonplace. How is it possible or what is the most refined way of passing loading messages to the JFrame class from a Class which is only running one method – so there will be sub-steps within the method?
I would like for the GUI/JFrame of my Java application to display meaningful loading
Share
You can use SwingWorker for your background task and pass data through the process() method call, as described here: http://download.oracle.com/javase/6/docs/api/javax/swing/SwingWorker.html