Swing extension and bug fixes for the classes provided by Sun.