try catch in swing.

Printable View