I’m needing a way to check if my game is running as an applet or as a desktop application while in the main method, so I can set the game’s resolution appropriately. If it’s an applet, I want to start in 800x600, and if it’s a desktop application, I want to start in fullscreen at the primary monitor’s resolution. Is there any way to test the program’s context like this? Or should I just make two separate versions? Not a big issue, but I’m curious.
public static void main() is only called on desktop and not for applets, as I recall.