If you aren't using a wired connection, check your router's wireless settings. There might be something there throwing your wireless adaptor off at certain intervals. A few examples would be:
- Your fragmentation threshold may be too low or your RTS/CTS threshold could be too high. This would only affect large packets, so if you only do some light browsing when you aren't playing Spiral Knights this is probably the case.
- Your beacon interval may be too high. Anything higher than 200 could cause connection problems and even then 200 is considered "risky".
- Your router may be operating in G-Only or B-Only mode. There are a few wireless adaptors from less-than-reliable companies that promise 801.11b/g adaptors, but in reality they're actually slower in g mode than b mode. Try setting your router to Mixed mode if it isn't already.
The later two would be noticeable outside of Spiral Knights, but they could be worth a try.
Aside from that, you could try configuring Java to connect directly rather than using your browser's settings from the Java control panel.