Resolving errors in swing library.
Formatting library code.