Hello everyone,
I have a Java swing GUI program that renders anywhere between 1 and 25 frames per second. It is only one window and only one panel to which I do all the rendering, e.g. no other Swing components.
I need to be able to produce videos of test runs of my program as it runs. The problem is that regular screen casting tools (e.g. 3rd party apps I start before running my code) often miss some of my frames and I need an accurate video.
I know how to use the Robot class to capture screenshots of my Java window, but I can't possibly be saving them to disk as I run, it will slow everything down too much. Is there a way for me to use the Robot class (or maybe some other piece of code) to create a video of my window on the fly, while running my program?
Thanks!