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.