Removed all swing dependencies from the ui API module.