This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I often have problem with refactoring some one class which has a lot of nested classes for example in Swing application. What is your advise: strict encapsulation that lead to very long code in one file or extracting nested classes to seperate files and keep references between them?