I looked over your code real quick and I saw too many errors to
name. Try simplifying your logical execution to find your logic
errors. (reminds me of a bunch of jumping beans)...
You have two main's one in ScreenSaver and one in DialogBox... your
original frame is probably building correctly, but then you start
creating objects and i'm thinking you lost a frame somewhere...
probably with the JFrame / DialogBox incapatability issues... try
using JDialog instead