You need warningImageLabel.setImage(warningImage); instead, or it craps out on Windows