I would like to be able to change the resolution of the screen, just inside a JFrame, so that I can for example magnify animations by hovering the frame over the animation, similar to the Windows Screen Magnifier.
It is not sufficient to just capture that portion of the screen into an image and then scale it, because that would not work with animations.
If it is not possible in Swing, then JavaFX would be another alternative