I need a way to allow my program to keep running code after this method is called.
Currently, it waits for half an hour, gets the info, stores it to the object WeatherCar
JOptionPane is modal, which means code execution blocks until the user dismisses or acknowledges it. You need to use a non-modal dialog. Consider creating your own JDialog. http://docs.oracle.com/javase/tutorial/uiswing/components/dialog.html