Corrected imports with Swing elements before refactoring for compiling