Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4171459

Freeze with resize of single frame

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Description


      chosho.kyo@japan 1998-09-05
      (1) Working environments
      OS : Solaris2.5.1 Japanese version
      Browser : Netscape Communicator4.04J
      Java Plug-in : Java Plug-in 1.1.1 g
      JRE : JRE1.1.6 within Plug-in
      Window : CDE
      Japanese Input : Atok7

      I attach an applet source named Applet1.java and an HTML file
      named 011.html below for reappearing the phenomenon.

      [Phenomenon 1] Netscape Communication(abbreviate to NC) comes to be freezed.
      Step1: Start NC with Java Plug-in.
      Step2: Read 011.html.
      Step3: Resize the NC several times.
      Step4: NC comes to be freezed.

      ---------------<Applet1.java>----------------
      import java.awt.*;
      import java.applet.*;

      public class Applet1 extends Applet
      {
          public void init()
          {

              setLayout(null);
              setSize(430,270);
              choice1 = new java.awt.Choice();
              choice1.addItem("List1");
              choice1.addItem("List2");
              choice1.addItem("List3");
              try {
                  choice1.select(0);
              }
              catch (IllegalArgumentException e) { }
              add(choice1);
              choice1.setBounds(24,24,246,48);
              textField1 = new java.awt.TextField();
              textField1.setBounds(24,84,153,30);
              add(textField1);
              textField2 = new java.awt.TextField();
              textField2.setBounds(24,120,153,30);
              add(textField2);
              label1 = new java.awt.Label("This label blinks per 1 minute.");
              label1.setBounds(24,168,242,42);
              add(label1);
              new BlinkComp(label1);
          }

          java.awt.Choice choice1;
          java.awt.TextField textField1;
          java.awt.TextField textField2;
          java.awt.Label label1;
      }

      class BlinkComp extends Thread{
          Component comp;
          public BlinkComp(Component c){
              this.comp = c;
              this.start();
          }
          public void run(){
              for(int i=0;;i++){

                  try{
                      sleep(1000);
                  }
                  catch(Exception e){}
                  if(i % 2 == 0){
                      this.comp.setBackground(Color.red);
                  }
                  else{
                      this.comp.setBackground(Color.blue);
                  }
              }
          }
      }


      ---------------<011.html>----------------
      <HTML>
      <HEAD>
      <TITLE>011.html</TITLE>
      </HEAD>
      <BODY>
      <!--"CONVERTED_APPLET"-->
      <!-- CONVERTER VERSION 1.0 -->
      <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
      WIDTH = 430 HEIGHT = 270
       codebase="http://java.sun.com/products/plugin/1.1/jinstall-11-win32.cab#Ver
      sion=1,1,0,0">
      <PARAM NAME = CODE VALUE = "Applet1.class" >

      <PARAM NAME="type" VALUE="application/x-java-applet;version=1.1">
      <COMMENT>
      <EMBED type="application/x-java-applet;version=1.1" java_CODE =
      "Applet1.class" WIDTH = 430 HEIGHT = 270
        pluginspage="http://java.sun.com/products/plugin/1.1/plugin-install.html">
      <NOEMBED></COMMENT>

      </NOEMBED></EMBED>
      </OBJECT>

      <!--
      <APPLET CODE = "Applet1.class" WIDTH = 430 HEIGHT = 270 >


      </APPLET>
      -->
      <!--"END_CONVERTED_APPLET"-->

      </BODY>
      </HTML>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bgomessunw Benedict Gomes (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: