[solved] How to change rectangle color using keyboard?

Hello JGO,

I have a question. Using only the Java 1.7/1.8 library, would you be able to change the color of a polygon draw by Java2D using keyboard input? For example, hitting the “R” key changes the polygon’s color to red. This is just something I have been wondering about, and want to know the answer to.

Thanks in advance,
DarkCart