Java Multithreading: Swing and SwingWorker (Video Tutorial Part 15)

If you’re doing Swing (GUI) programming in Java, you might want to consider using the SwingWorker class for your multithreading needs. SwingWorker is a ferocious-looking but useful class that’s perfect for running stuff in the background while simultaneously updating progress … Continue reading

Posted in Java, Java Multithreading, Java Video Tutorials (Advanced) | Tagged , , , , , , , |

Java Multithreading: Interrupting Threads (Video Tutorial Part 14)

What exactly are those pesky InterruptedExceptions? In this video I show you how to interrupt running threads in Java using the built-in thread interruption mechanism. After starting the video, click the maximise button to make it fullscreen so you can … Continue reading

Posted in Java, Java Multithreading, Java Video Tutorials (Advanced) | Tagged , , , , , |

Java Multithreading: Callable and Future (Video Tutorial Part 13)

How to use Callable and Future in Java to get results from your threads and to allow your threads to throw exceptions. Plus, Future allows you to control your threads, checking to see if they’re running or not, waiting for … Continue reading

Posted in Java, Java Multithreading, Java Video Tutorials (Advanced) | Tagged , , , , , , |