Category Archives: Animation

4 Ways to Capture a Screenshot

The ability to create a screenshot programmatically in Java code can be very useful. I personally use it to create my animated transitions.

Here are 4 ways to create a screenshot in Java.

READ MORE »

Easy animated transitions in Java Swing with TimingFrameworks

clockCreating animated transitions use to be a tedious task in Java Swing… until TimingFrameworks came along. TimingFrameworks (https://timingframework.dev.java.net/), written by Chet Haase, is a library for making Java animation and timing-based control easier. There are two good introductory articles on their website worth reading.

Crash course in animation

Below is the code to move a JFrame 100 pixels from left to right in 1 second.

READ MORE »