Swing isn’t designed (“safe”) to use on any thread other than the AWT event thread
I have no knowledge of the inner workings of Processing or Swing; please explain the ramifications. I only know that it makes a pretty neat gui and is fairly easy to do.