So I have this website that has a chatbox. I now have an offsite way to chat to the chatbox and get chats from it, the problem is that it only updates other users chats when I post or manually hit refresh, is there a command in java that will run a method, say every 10 seconds (the getChatData method lets say), so that it will auto refresh and not require me to manually refresh?


Thanks!

Why not use a javax.swing.Timer to run your method(s) every 10,000 mSec?

Oh..never heard of that before, I shall look into it.
If I don't find anything could you post a quick easy example?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.