Java - Copy Text from Information Message Dialog?

Just wondering if there is there any way to copy the text from an Information Message Dialog in Java.

It’s part of my password program, it’s the final step, but it looks like I’ll need something else because I don’t think you can.