I've been having the same problems with my 10.7.5 server The answer by djdarkbeat did not work for me and I have spent the last couple of months trying to find a work around (apart from upgrading to mountain lion)
Today I installed the latest version of Java for OS X 2013-003 alongside Java 7u17. The java control panel window still will not paint when it first opens, I have been able to minimise and maximise to get a single paint to occur at a time. Using this crazy method I have been able to check out settings and partially get some of my java apps working.
It's not a full solution (yet) but it may help someone get somewhere when they realise the other solutions don't work.