support for applets in java2d and lwjgl backends