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.
Ajax? But the question is about Swing, not about Web applications. You must have misread the question, WP.
As for "sample code", we don't do that here. (Read NotACodeMill for example.) But if you posted some code which you already had, and asked some questions about it, we could certainly work on getting those questions answered.