So many Swing settings and callbacks; one function to rule them all.