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

JComboBox Fails in Netscape Frame on win32

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2ea2
    • CPU:
      x86
    • OS:
      windows_nt

      Description

      When a JComboBox is added to a JApplet, and the JApplet is displayed in an HTML
      frame in Netscape, the JComboBox is unresponsive after the initial selection.
      If the JApplet is displayed in an ordinary converted HTML page this does not
      occur.

      This problem occurs only for Netscape and only on win32. It has been tested with Netscape 4.01, 4.05, and 4.5. The problem does not occur with IE 3.02.

      Below is a test case.

      -------------------------- JComboBoxExample.java ------------------------------
      import javax.swing.*;
      import java.awt.*;

      public class JComboBoxExample extends JApplet {
        public void init() {
          getContentPane().setLayout(new FlowLayout());
          Object[] letters = {"a", "b", "c"};
          JComboBox lettersBox = new JComboBox(letters);
          getContentPane().add(lettersBox);
        }
      }

      ----------------------------- JComboBoxExample.html ----------------------------
      <HTML>^M
      <HEAD>^M
      <TITLE>JComboBoxExample</TITLE>^M
      </HEAD>^M
      <BODY BGCOLOR="#6599CB">^M
      <!--"CONVERTED_APPLET"-->^M
      <!-- CONVERTER VERSION 1.0 -->^M
      <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"^M
      WIDTH = 400 HEIGHT = 400 codebase="http://java.sun.com/products/plugin/1.1/jinstall-11-win32.cab#Version=1,1,0,0">^M
      <PARAM NAME = CODE VALUE = "JComboBoxExample.class" >^M
      ^M
      <PARAM NAME="type" VALUE="application/x-java-applet;version=1.1.1-">^M
      <COMMENT>^M
      <EMBED type="application/x-java-applet;version=1.1.1" java_CODE = "JComboBoxExample.class" WIDTH = 400 HEIGHT = 400 pluginspage="http:/
      /java.sun.com/products/plugin/1.1/plugin-install.html"><NOEMBED></COMMENT>^M
      ^M
      </NOEMBED></EMBED>^M
      </OBJECT>^M
      ^M
      <!--^M
      <APPLET CODE = "JComboBoxExample.class" WIDTH = 400 HEIGHT = 400 >^M
      ^M
      ^M
      </APPLET>^M
      -->^M
      <!--"END_CONVERTED_APPLET"-->^M
      ^M
      </BODY>^M
      </HTML>^M

      --------------------------------- frames.html ----------------------------------
      <HTML>
      <HEAD>
      <TITLE> Will Combo Boxes work here? </TITLE>
      </HEAD>
      <frameset cols="100%" rows="100,*">
      <frame name="title" src="empty.html" scrolling="no" marginwidth="0" marginheigh
      t="0">
      <frame name="applet" src = "JComboBoxExample.html">
      </frameset>
      </HTML>

      --------------------------------- empty.html ----------------------------------
      <HTML>
      <BODY BGCOLOR=#6599CB>
      </html>


      vince.duong@Eng 1998-12-22

        Attachments

          Activity

            People

            Assignee:
            stanleyh Stanley Ho (Inactive)
            Reporter:
            nrodinsunw Nick Rodin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: