I’ve embedded applet in a jsp page. Initially appearance of applet is coming well. After some time during the process of applet , when the browser window is minimized and restored or if we are switching to any other window and coming back to the applet embedded jsp page, the things whatever displayed in applet are vanished because of which behavior of applet could not be recognized.
I’ll explain the applet process flow briefly. My applet is for transferring files from local machine to server through FTP concept. To show the progress of file transfer I’ve used progress bar with percentage displayed on it. As the files are transferred, progress bar status varies and also the percentage displayed.
Because of the above mentioned problem, the end user could not see the progress bar or anything else displayed in the applet. Problem is with applet behavior only.
Can any body suggest me how to rectify this problem?
Following is the fraction of applet code I’ve used.
Following code explains how the applet is embedded in JSP.
is there any possible then modify this code and add paint() or repaint() or update() methods. can any one please give me the solution.
[ UD: added linebreaks to preserve layout ]
once again i will explain my applet flow. when the user enters into a given jsp page then the applet must be loaded but not performing any action and when ever user clicks the jsp button then the applet must be loaded(now only the required informations are passed to the applet from jsp page) and it wants to Perform the particular action(like copying file), on that time it shows the components. but if i minimize this jsp page then the components are not showing. please resolve this problem. thanks in advance.
Ulf Dittmer wrote:This may not have anything to do with the problem, but your code should not be calling the applet's init and start methods. The browser does that for you, and if you call those a second time, things may go wrong. Google for "applet lifecycle" for an explanation of when the various applet methods are called automatically.