JDialog not working properly

Printable View