So I know to declare and initialize a global variable one would have to do something like this for example:
public static int Variable = 2;
But I want to know if there is a way to initialize a global BufferedImage variable with an image from a file. I can't use the above code, since I also need to include a try/catch statement.
Anyone have any solutions to my problem?