Is it Possible to Create a Java Agent w/ Multithreaded UI?

I want to create a java agent in notes 8, so that when you select an item in a database, it will run a process and then pop up with a dialog box, showing all the tasks that were completed with success or failure.

Right now I have attempted to create another thread where a SWT UI box is spawned from the NotesMain() by way of a class that is inherits from Thread, SWTThread.process().start() (contains a run command)

I can do system.out.println’s from this thread, but it will completely ignore any UI commands that I create in this thread, and won’t even give me any error messages.

Is there a way to create a dialog box that is independent from the agent that can be passed data? If I do it unthreaded, the dialog box will cause notes to freeze until it is closed.