migrate swing-dependent code from core to new jgui module
fix charts module to use new jgui module