When and Where to call EventQueue.invokeLater() method
问题 I'm totally fresh about threading and GUIs, therefore I couldn't figure out exactly where to call this EventQueue.invokeLater() method. Am I supposed to call it in every event listeners and something else? What are those "things" to call this method? If so, is there any alternative way to call-once-apply-everywhere method so that It won't take bunch of lines to tuck them to the Event dispatch thread? Thank you. 回答1: therefore I couldn't figure out exactly where to call this EventQueue