I am using java.awt.Frame for my Java application window which is being refreshed from a loop inside main.
The application behaves exactly as it should when it is run from Eclipse, but when I package it into a jar, It draws the first screen, but then nothing else after that.
when I try switching the window to a JFrame, it works, but only a portion of the images get drawn and updated.
I'm not sure what the problem is? If it runs fine from eclipse, shouldn't it run the exact same in a jar file?
EDIT: I figured out the problem. Its due to fonts not loading from the jar file. Is there a way to get these to load correctly? This is my code for them:
Font font = Font.createFont(Font.TRUETYPE_FONT,
obj.getClass().getClassLoader().getResource(fontName));