Corrected text view to fill dialog.
Removed obsolete AWT code.