Problem running oustide of NetBeans
I have just finished an application that inverts colors in images (long story, but yes it has a purpose) and it runs fine in NetBeans when I hit F6. However, when I do a clean+build, and try to run the JAR via double-click, it has some interesting issues. Occasionally the JFrame GUI will display blank, other times it will be a static image that does not change when I click on it, mouse over, etc. When the GUI does work, I am able to select images to invert via the button using a JFileChooser. But when I click 'invert', the SwingWorker class that handles inversion instantly finishes, but does not actually perform the inversion.
In case it matters, the method for inverting the images is as follows:
Pull image from file into BufferedImage, invert pixels, write to png file using imageIO.write.
I have no idea why it is not working outside of NetBeans, any help would be much appreciated. Let me know if more information is needed.