Applet dont show the Components

Hi,
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.
public class UploadFolderApplet extends javax.swing.JApplet {
     private javax.swing.JProgressBar jPB_Progress;
     private javax.swing.JPanel jPanel;
     private javax.swing.JLabel msglabel;
    public void init() {     
     try
            initComponents();
          catch (Exception ex)
            ex.printStackTrace();
     public void start()
     System.out.println("start()");     
     public void stop()
          try
          System.gc();
          System.out.println("stop()");               
          catch (Exception ee)
               System.out.println("The Exception is at line 214 is ===>"+ee);
     public void destroy()
          try
          System.gc();
          System.out.println("destroy()");               
          catch (Exception ee)
               System.out.println("The Exception is at line 214 is ===>"+ee);
     private void initComponents() {
     jPanel = new javax.swing.JPanel();
        msglabel = new javax.swing.JLabel();
        jPB_Progress = new javax.swing.JProgressBar();
        getContentPane().setLayout(null);
        jPanel.setLayout(null);
        jPanel.setBackground(new java.awt.Color(235, 235, 235));
        msglabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jPanel.add(msglabel);
        msglabel.setBounds(20, 40, 830, 270);
        jPanel.add(jPB_Progress);
        jPB_Progress.setBounds(280, 10, 280, 20);
        getContentPane().add(jPanel);
        jPanel.setBounds(0, 0, 870, 320);          
     jPB_Progress.setVisible(false);
     jPB_Progress.setBackground(new java.awt.Color(255, 255, 255));
        jPB_Progress.setForeground(new java.awt.Color(153, 227,155));
public void pageLoad(String projid01,String clientname01,String projectname01,String isbnno01,String isbnext01,String projtype01,String username01)
          SwingWorker sw = new SwingWorker() {
          protected Object doInBackground() throws Exception {
          // this part is executed when user clicks button in jsp page
          return null;
//          sw.execute();
          Thread th = new Thread(sw);
          th.start();
          th = null;
          if(sw.isDone()){
          sw = null;
}Following code explains how the applet is embedded in JSP.
<html>
<head
//some script code
<script language='javascript'>
function subForm(clientname,projectname,projid,isbnno,isbnext,projtype)
     document.applets.fmsupload.init();     
     document.applets.fmsupload.start();     
     document.applets.fmsupload.pageLoad(projid,clientname,projectname,isbnno,isbnext,projtype,uname);
</script>
</head>
<body>
//here some jsp code
<input class="but" name="b" type="button" value="UploadFiles" onclick="return subForm('<%=clientname%>','<%=projectname.toUpperCase()%>','<%=projid%>','<%=isbnno%>','<%=isbnextn%>','<%=projtype%>');"  style="font-family: Verdana; font-size: 10pt; font-weight: bold">
<applet  name="fmsupload" archive="fmstest.jar" type="applet"  code="UploadFolderApplet.class" codebase="./fms/uploadfolders"  height="320" width="870">
</body>
</html>can any one please give me the solution.

If you are on a Mac, this requires Java SE 6 to compile (64 bit). It's my current understanding that Safari (32 bit) won't display 64 bit applets.
I'm on a Mac, therefore it's pointless for me to try and assist you any more.

Similar Messages

  • Why it dont show the Pictures in the window?

    I am unable to find out, why the Pictures arent shown...
    The Pictures are in the correct folder.
    The program runs but dont show the 3 Pictures.
    What is the problem?
    Code:
    import java.awt.*;
    import java.awt.Color;
    import java.applet.*;
    import java.awt.image.*;
    import java.awt.event.*;
    public class BildInFenster extends Frame{
    public void zeichnen(Graphics g){
    Image img1, img2, img3;
    img1 = Toolkit.getDefaultToolkit().getImage("1.jpg");
    img2 = Toolkit.getDefaultToolkit().getImage("2.jpg");
    img3 = Toolkit.getDefaultToolkit().getImage("3.jpg");
    MediaTracker tr = new MediaTracker(this);
    tr.addImage(img1, 0);
    tr.addImage(img2, 1);
    tr.addImage(img3, 2);
    try {
    tr.waitForAll();
    catch (InterruptedException ex){
    g.drawImage(img1, 20, 20, 100, 100, this);
    g.drawImage(img2, 20, 170, 100, 100, this);
    g.drawImage(img3, 20, 320, 100, 100, this);
    public static void main (String []args){
    Frame fenster = new Frame();
    fenster.setTitle("Einarmiger Bandit");
    fenster.setSize(500, 600);
    fenster.setVisible(true);
    WindowListener wl = new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    fenster.addWindowListener(wl);
    Thank you for your help!

    Hello My Dear Frend,
    Do u think that ur BildInFenster class's object will be called automatically???????,
    Please make a note that u r not calling the object of the BildInFenster Class.
    Make the Following Changes
    import java.awt.*;
    import java.awt.Color;
    import java.applet.*;
    import java.awt.image.*;
    import java.awt.event.*;
    public class BildInFenster extends Frame{
    public BildInFenster()
         repaint();
    public void paint(Graphics g){
    Image img1, img2, img3;
    img1 = Toolkit.getDefaultToolkit().getImage("1.jpg");
    img2 = Toolkit.getDefaultToolkit().getImage("2.jpg");
    img3 = Toolkit.getDefaultToolkit().getImage("3.jpg");
    MediaTracker tr = new MediaTracker(this);
    tr.addImage(img1, 0);
    tr.addImage(img2, 1);
    tr.addImage(img3, 2);
    try {
    tr.waitForAll();
    catch (InterruptedException ex){System.out.println(ex);
    g.drawImage(img1, 20, 20, 100, 100, this);
    g.drawImage(img2, 20, 170, 100, 100, this);
    g.drawImage(img3, 20, 320, 100, 100, this);
    public static void main (String []args){
    BildInFenster fenster = new BildInFenster(); // instead of the Frame object call ur BildInFenster Classes Object
    fenster.setTitle("Einarmiger Bandit");
    fenster.setSize(500, 600);
    fenster.setVisible(true);
    WindowListener wl = new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    fenster.addWindowListener(wl);
    }

  • I am using the iphone 4s in india now. i bought it from canada (factory unlocked). But here in india. when i put my vodafone sim in 4s. It only shows th name of the carrier but dont show the range towers. i tried airtel and reliance carriers also.

    I am using the iphone 4s in india now. i bought it from canada (factory unlocked). But here in india. when i put my vodafone sim in 4s. It only shows th name of the carrier but dont show the range towers. i tried airtel and reliance carriers also.but the result was same. now what can i do??

    BobbyLe wrote:
    I could not follow the AT&T instruction because my network (Optus) doesn't have anything as username or password or dial-up phone number. The only parameter I needed to key into Mobilink (the software I am running on the S10 is the APN which is:    connectme    that's it no number, no PIN, no password, nothing else.
    How do I tell Windows to do that?
    *99***1#  <--- the number to call
    at+cgdcont=1,"ip","connectme"  <----- the  string to put in the advanced field of the modem

  • My iphone 4s wont connect in apple tv 3rd gen dont show the airplay icon, but apple tv can connect in Bose sound touch 20 via airplay, and the iphone also connect to sound touch 20 via airplay, so it means theres something wrong in my iphone.

    my iphone 4s wont connect in apple tv 3rd gen dont show the airplay icon, but apple tv can connect in Bose sound touch 20 via airplay, and the iphone also connect to sound touch 20 via airplay, ive just buy it yesterday in Mediamarkt Spain,, so it means theres something wrong between my iphone and the apple tv? please me

    Hi jaredfox06,
    If I understand the issue correctly, you have recently purchased a used iPhone and you do not see your Apple TV in the control center in order to AirPlay.  To troubleshoot this issue please follow the steps outlined below.
    Try these steps first
    Make sure that you have the latest software on your iOS device and Apple TV.
    Make sure that both devices have Wi-Fi turned on.
    On your iOS device, go to Settings > Wi-Fi.
    On your Apple TV, go to Settings > General > Network.
    If you're trying to use peer-to-peer AirPlay, make sure that both devices have Bluetooth turned on.
    On your iOS device, go to Settings > Bluetooth.
    On your Apple TV, go to Settings > General > Bluetooth.
         If you don't see AirPlay in Control Center
    When an AirPlay-enabled device is available, you'll see AirPlay in Control Center on your iOS device.
    If you don't, try these steps:
    Restart your iOS device and Apple TV.
    Connect both devices to the same Wi-Fi network.
    On your iOS device, go to Settings > Wi-Fi.
    On your Apple TV, go to Settings > General > Network. If your Apple TV is connected using Ethernet, make sure that it’s plugged in to the router you're using for Wi-Fi.
    On your Apple TV, make sure that AirPlay is turned on. Go to Settings > AirPlay.
    Get help using AirPlay and AirPlay Mirroring on your iPhone, iPad, or iPod touch - Apple Support
    Have a good one,
    Alex H.

  • Hi,  We are developing quite a few excel worksheet reports. The reports dont show the cells if contain formulas ( when opened in iPad or ipod  ),  is there any good solutions .

    Hi, 
    We are developing quite a few excel worksheet reports.
    The reports dont show the cells if contain formulas ( when opened in iPad or ipod  ),
    Is there any good solutions .
    Thanks.

    There is no version of Excel for iPads.  iPads come with something that lets you view the contents of Excel files but it implements only the common easy features and there are (literally) hundreds of things you can do in Excel that it doesn't know how to show on the screen, including some functions.
    If you intend to work with spreadsheets on an iPad I suggest you buy Numbers for iPad
    http://www.apple.com/apps/iwork/numbers/
    which understands more (but still not 100%) of the things that Excel does.  It is so cheap that you can probably afford to buy a copy just to see whether it does what you want.
    If you are doing things with spreadsheets and intend to be primarily working on iPads then I suggest you actually use Numbers on a Mac as well, rather than using Excel at all.

  • How i can increase the volume when i playing a video? dont showing the volume control in the player..

    how i can increase the volume when i playing a video? dont showing the volume control in the video player..

    Are you sure you increased the caller volume? This is only adjustable while in conversation. So, while you are calling you'll see a few icons on your screen and one of them is to adjust your caller volume.

  • Simple webDynpro - RFC dont show the Data in table

    Hello all.
    I`m develop a simple application test in NWDS.
    This application execute data in a table from the standard function module BAPI_COMPANY_GETLIST. simple return the list of companys.
    But when i execute the application, its dont shw any errors but the data dont show in the webdynpro table.
    What is wrong ?
    thanks.

    Hi JV.
    This the code in method implementation.
    package comp_package;
    //@@begin imports
    import comp_package.wdp.IPrivateCompanyComponentView;
    import com.sap.mw.jco.JCO;
    import model_package.Comp_Model;
    import model_package.Bapi_Company_Getlist_Input;
    import com.sap.tc.webdynpro.progmodel.model.api.WDModelFactory;
    import com.sap.tc.webdynpro.progmodel.model.api.WDModelScopeType;
    //@@end
    //@@begin documentation
    //@@end
    public class CompanyComponentView
    Logging location.
      private static final com.sap.tc.logging.Location logger =
        com.sap.tc.logging.Location.getLocation(CompanyComponentView.class);
      static
        //@@begin id
        String id = "$Id$";
        //@@end
        com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").infoT(id);
    Private access to the generated Web Dynpro counterpart
    @see comp_package.wdp.IPrivateCompanyComponentView for more details
      private final IPrivateCompanyComponentView wdThis;
      private final IPrivateCompanyComponentView.IContextNode wdContext;
      private final com.sap.tc.webdynpro.progmodel.api.IWDViewController wdControllerAPI;
      private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;
      public CompanyComponentView(IPrivateCompanyComponentView wdThis)
        this.wdThis = wdThis;
        this.wdContext = wdThis.wdGetContext();
        this.wdControllerAPI = wdThis.wdGetAPI();
        this.wdComponentAPI = wdThis.wdGetAPI().getComponent();
      //@@begin javadoc:wdDoInit()
      /** Hook method called to initialize controller. */
      //@@end
      public void wdDoInit()
        //@@begin wdDoInit()
    //     Creates the input elements
         Bapi_Company_Getlist_Input input = new Bapi_Company_Getlist_Input();
    //     Creates an instance of a client to the remote SAP system    
          client = JCO.createClient("100",          //SAP logon client number
                                          "user",            //SAP logon user
                                          "pass",        //SAP logon password
                                          "en",        //SAP logon language
                                          "XXXX",        //Host name of application server
                                          "XX");          //SAP system number
    //     Creates the model instance
          model = (Comp_Model)WDModelFactory.getModelInstance( Comp_Model.class, WDModelScopeType.APPLICATION_SCOPE);
          // Assigns the client to the model
          model.setJcoClient(client);   
        //@@end
      //@@begin javadoc:wdDoExit()
      /** Hook method called to clean up controller. */
      //@@end
      public void wdDoExit()
        //@@begin wdDoExit()
        //@@end
       public static void wdDoModifyView(IPrivateCompanyComponentView wdThis, IPrivateCompanyComponentView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
        //@@end
      //@@begin javadoc:getCompany()
      /** Declared method. */
      //@@end
      public void getCompany( )
        //@@begin getCompany()
         client.connect();
         System.out.println("passo1");
         try {
         wdContext.currentBapi_Company_Getlist_InputElement().modelObject().execute();
         wdComponentAPI.getMessageManager().reportSuccess((new Integer(wdContext.nodeBapi_Company_Getlist_Input().size()).toString()));
         catch (Exception ex) {
            ex.printStackTrace();
         finally {
           client.disconnect();
         // Invalidates the output context node 
         wdContext.nodeBapi_Company_Getlist_Input().invalidate();
        //@@end
      //@@begin javadoc:onActionGo(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onActionGo(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionGo(ServerEvent)
        wdThis.wdGetComp_ControllerController().getCompanys();
         client.connect();
              System.out.println("passo1");
              try {
              wdContext.currentBapi_Company_Getlist_InputElement().modelObject().execute();                         }
              catch (Exception ex) {
                 ex.printStackTrace();
                 System.out.println(ex);
              finally {
                client.disconnect();
              wdContext.nodeOutput().invalidate();
    wdComponentAPI.getMessageManager().reportSuccess((new Integer(wdContext.nodeBapi_Company_Getlist_Input().size()).toString()));
        //@@end
       //@@begin others
      JCO.Client client;
      Comp_Model model;
      //@@end
    Regards.
    Taylor.
    Edited by: Taylor on Aug 4, 2009 12:46 PM

  • Im trying to transfer my songs to my itunes. ive tried wit all kinds of softwares and also manually. when i go to my computer and on ipod and select view show hidden files it dont show the ipod control folder. it only shows the dcim

    my ipod been actin up lately. sometimes im just playing a song and all of a sudden it freezes or turns off. it dont do it often but it do. so im trying to transfer all my songs to my itunes or my computer. i have tried every software out there and it tells me that im missing a plugin. i have restored my ipod and had to start brand new. i have updated my itunes to make sure is not a update issue. i have the latest updates but is stil not doing it. so when i try to transfer the songs manually i go to my computer; my ipod; view folder options and select show hidden files. it dont even show the ipod control folder. it only shows dcim

    You need a third-party program to get non-iTunes purchased music off the iPod.  Which have you tried? Th good ones cost like TouchCopy and PhoneView. Here are some others:
    Copy music from Ipod to new computer...: Apple Support Communities

  • When i use images in an applet, it shows the image url, how do i remove it?

    Ok, so when i open up an applet, and it uses images, it shows the url for each image, which is not good because my graphics could get stolen. Is there anyway to disable this?, i have never noticed it before.

    I notice the following from the documentation for one of the [ImageIcon constructors|http://java.sun.com/javase/6/docs/api/javax/swing/ImageIcon.html#ImageIcon(java.net.URL)]: "Creates an ImageIcon from the specified URL. The image will be preloaded by using MediaTracker to monitor the loaded state of the image. The icon's description is initialized to be a string representation of the URL."
    I guess if you are using this - or something similar - Java runtimes might decide to show the string representation of the URL while they are loading the image. In this particular case there is another form of the constructor which allows you to actually set the description string.

  • HT1688 Hello, my iphone 4s has  aproblem with the sound. The speaker rings for incoming calls/messages etc. However for non of the apps the speaker sound works anymore. volumebuttons also dont show the volume bar. Anyone has any ideas

    Hello, can anyone help Me? I have a problem with the external speaker of my iphone 4s. It works when i get calls, messages etc but nit for any app. The headphone does still work. The volumebuttons also do not show the regular volume bar. Any ideas please?

    Clean the iPhone charging port with a clean dry toothbrush. Dust or debris is causing iPhone to believe it is in Dock station.

  • Submit a program and skip output or dont show the output (alv list)

    hi,
    is it possible to use the submit command and skip output or don't show the output (alv list) ?
    Regrads
    ertas

    Hi all,
    I get the message
    REPORT  ZTEST.
    DATA: jtab TYPE TABLE OF sbook,
          wa_jtab LIKE LINE OF jtab,
          jtab2 TYPE z_incident_li OCCURS 0 WITH HEADER LINE.
    submit Z_INCIDENT_LIST EXPORTING LIST TO MEMORY AND RETURN.
    IMPORT lt_incident_res TO  jtab2 FROM MEMORY ID 'table'.
    LOOP AT jtab2 .
      WRITE / jtab2-RECN.
    ENDLOOP.
    Runtime Errors         RAISE_EXCEPTION
    Date and Time          12.06.2008 17:54:00
    Short text
         Exception condition "CNTL_ERROR" raised.
    What happened?
         The current ABAP/4 program encountered an unexpected
         situation.
    Error analysis
         A RAISE statement in the program "CL_GUI_CONTROL================CP" rais
          exception
         condition "CNTL_ERROR".
         Since the exception was not intercepted by a superior
         program, processing was terminated.
         Short description of exception condition:
         For detailed documentation of the exception condition, use
         Transaction SE37 (Function Library). You can take the called
         function module from the display of active calls.

  • ITunes 11 dont show the correct iphone

    i have a macbook pro and itunes 11 and when i go to the device part says iphone and i clicked on and my iphone is 4s and itunes show iphone 4 only i dont know what can be that but im sure that my iphone is 4s because i use siri everyday for example

    This is normal. PSU patches do not update the database version that is displayed. See MOS Doc 861152.1 (Do Patchset Updates (PSU's) Change the Oracle Release Version/Fifth Digit?)
    As long as you can confirm from the logs that the patch applied successfully without errors, you are good.
    HTH
    Srini

  • Software center dont show the package(not applications) on the client as installed when logging in with other User ID.

    It is showing as Installed in software center with user ID through which it is actually installed but not from other User ID's.
    Please send me suggestions or how we can resolve this issue.

    Software center might not show it if there are multiple users logged in. It will only be shown to the
    user that got the highest (lowest? Can't remember it) session id.
    http://social.technet.microsoft.com/Forums/en-US/a3c20fe1-226d-4667-afeb-74879ee93c6a/applications-but-not-programs-showing-in-software-centre?forum=configmanagerapps
    Regards, Ibrahim Hamdy

  • Dont show the 2 leftmost characters in a report?

    How do I make a formula for that?
    I 've got a result that shows: 2;561223. I just need the 561223 to be shown.

    >
    Claus Smidt wrote:
    > How do I make a formula for that?
    > I 've got a result that shows: 2;561223. I just need the 561223 to be shown.
    Claus
    Look in your string functions:
    Mid ({field}, 3)  // starts printing at character 3 in a text field
    Debi

  • Sqlplus and dbconsole  dont' show the correct version

    Hi,
    I have succesfully applied the patch 9654983 (11.2.0.1.2 Patch set update) .
    But , I don't understand why sqlplus and the dbconsole still show me the 11.2.0.1.0 version.
    Did I miss a step ? pfile or spfile ?
    note the the registry$history table showo the 12.2.0.1 version and "PSU 12.2.0.1.2 " as comment.
    Thanks be advance,
    Daniel Tasseroul

    This is normal. PSU patches do not update the database version that is displayed. See MOS Doc 861152.1 (Do Patchset Updates (PSU's) Change the Oracle Release Version/Fifth Digit?)
    As long as you can confirm from the logs that the patch applied successfully without errors, you are good.
    HTH
    Srini

Maybe you are looking for