How do I simulate a buffered peripheral device with SwingWorker?
问题 I'm using this exercise as a pedagogical tool to help me burn in some Java GUI programming concepts. What I'm looking for is a general understanding, rather than a detailed solution to one specific problem. I expect that coding this "right" will teach me a lot about how to approach future multi-threaded problems. If this is too general for this forum, possibly it belongs in Programmers? I'm simulating a card reader. It has a GUI, allowing us to load cards into the hopper and press Start and