hi all, please help me in this problem.... i have a applet running which is connected to the server. which is showing the data from the database. What i have to do is to capture the refresh event and when the user presses the refresh button i have to call a function. How can i do it.
What have you tried so far? What do you have problems with?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
What Applet lifecycle methods are you using in your program?
The first time the user enters the page init() is called, then start(). Any time the user leaves the page, stop() is called. If the user returns to the page, only start() by itself is called. At some point destroy() is called to get rid of the applet, like if the web browser is closed, or the JVM runs low on memory, etc.
The problem is that different browsers (and browser versions) handle refresh differently - some browsers just call stop() and start(), some completely unload the applet and do a full stop(), destroy(), and init(), start() on a new instance.
You'll have to test it out and see what combination works best in your situation.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.