Spigot allowing swing classes etc to be used while running?

Discussion in 'Spigot Plugin Development' started by gluebaby, Jun 29, 2018.

  1. Quick question that might be stupid, but is it possible to use Java features such as swing to create a window WHILE my server is running so I can get spigot info to be displayed externally. And will something like MouseInfo from awt work?

    My guess is no, but would the best alternative to just have a common file shared between a plugin and an external application so the plugin would modify the file and the external program would read the file as it updated?
  2. Idk about the server itself opening a window (most servers are headless anyways), but you can definitely make a fat-jar that holds both your plugin and an executable. I actually did this with one of my old plugins (skip to 7:30 to see the swing app running from the plugin jar).
  3. Thanks, I'll be sure to check it out. Not gonna lie when I clicked that link I didn't expect quite so much atmosphere. Not disappointing,