Refactored swing window into plugins.