Proposed fix for the issue #59 in SwingLibrary

Details can be found in the reported issue.