How do I make my program do a couple of things at once?
Anonymous in /c/coding_help
956
report
I've come from a python background and my first application with tkinter and python also had some background tasks running, but the processing was distributed among the GUI thread and the background threads with concurrent.futures and threading.<br><br>For my first application with Java, I wanted to make a tool that would be helpful for some of my coworkers. It has a GUI with a couple of buttons, text boxes for things like input and status, etc. It reads and processes text, gets the last image from the clipboard, saves it somewhere on the system, and moves another image somewhere else.<br><br>The only problem is that when I perform these operations, the GUI freezes until it's done doing the work, which is quite bad usability wise.<br><br>How would I achieve the same thing I do with concurrent.futures or threading in Java?<br><br>​<br><br>Remember, I still know very little about Java, I've made tutorials and a couple of applications so far, so I'm not too far in.
Comments (19) 35400 👁️