A cool trick to debug Swing Application. Often when debugging swing applications we require to know where the code for a particular textbox or drop down or any other swing component is. If this is a huge legacy application chances of finding the code easily are slim. This is where i would recommend you check out JDeveloper. Jdeveloper has this cool feature that when you launch a swing application in UI debug mode , you can click on the swing component in the running application and directly go to its code.
Also if the whole application root panel is getting selected try changing your desktop resolution and relauch the application . It worked for me ;-).
Also check out