added swing dependency to swing implementation