First, think of what you want to accomplish. This program draws random shapes to a frame...
http://www.cs.indiana.edu/classes/a202-dger/spr2006/notes/labs7-25/tut20/ScreenSaver.java
Then you need to make your app full screen...
http://exampledepot.com/egs/java.awt/screen_FullWin.html
Once your app is done. The last thing you have to do is (not sure about this) to call your java app from another program written in another language like VB. Perhaps the microsoft guys here have an idea because I dunno if you can register your java app natively as a screensaver in windows.
Or... Take a look and study this project called... serverbeans https://screensavers.dev.java.net/

Convert limitations to great expectations... You are the creative force of your life...