You're blocking the GUI Event Dispatch Thread. You need to spawn a separate thread to wait for input so you can keep your GUI responsive.
You're already doing the right thing by creating a SwingWorker
to handle I/O in your TryGraphic
class. You should do something similar to move the Try.main(new String[]{""});
call off the Event Dispatch Thread, which will keep your JFrame from locking up.