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

JEditorPane: Drop down lists are rendered too wide.

XMLWordPrintable

      The drop down lists produced by the <select> tag is rendered across the whole screen in JEditorPane.

      Here is a sample file:

      <!DOCTYPE HTML PUBLIC "-//HotJava QA//DTD HTML 3.2//EN">
      <HTML>
      <HEAD>
      <TITLE>Testing HotJava based on the 3.2 html spec</TITLE>
      </HEAD>
      <BODY bgcolor="white" >

      <h1>Tests Form Element Select Attribute</h1>
      <h2>Definition</h2><em>SELECT</em> is used to define select one from many or many from many menus.<br>
      SELECT elements require start and end tags and contain one or more OPTION
      elements that define menu items. One from many menus are generally rendered
      as drop-down menus while many from many menus are generally shown as list
      boxes.

      <hr><h2>Expected Results</h2>
      Forms Display and Behave as Described Below
      <br>and No Html Errors are Found
      <p>This form field contains several selectable menus
      Choose your desired options from each menu and
      submitting the form should return your selected options as the query results

      <FORM METHOD="POST" ACTION="http://hoohoo.ncsa.uiuc.edu/htbin-post/post-query">
      <H2>If I Where God What Would Change Around Here</H2>
      <p>Ice Cream Flavor<br>
      <SELECT NAME="flavor">
      <OPTION VALUE=Vanilla>Vanilla
      <OPTION VALUE=Strawberry>Strawberry
      <OPTION VALUE=Rum&Rasin>Rum and Raisin
      <OPTION VALUE=Peach&Orange>Peach and Orange
      </SELECT><p>


      World Ruler<br>
      <SELECT NAME="World Ruler">
      <OPTION VALUE=Peggy_Kelley>Peggy Kelley
      <OPTION VALUE=Steve>Steve
      <OPTION VALUE=Sunita>Sunita
      <OPTION VALUE=Terry>Terry
      <OPTION VALUE=Brenda>Brenda
      <OPTION VALUE=Herb>Herb
      <OPTION VALUE=Malini>Malini
      <OPTION VALUE=Jon>jon
      <OPTION VALUE=Anet>Anet
      </SELECT><p>
      Slave<p>
      <SELECT NAME="Slaves Of World Ruler">
      <OPTION VALUE=Amy_Pearl>Amy Pearl
      <OPTION VALUE=Carla_Schroer>Carla Schroer
      <OPTION VALUE=Hoa_Nyugen>Hoa Nyugen
      <OPTION VALUE=Frank_Dibble>Frank Dibble
      <OPTION VALUE=Alan_Baratz>Alan Baratz
      <OPTION VALUE=Jon_Kannegard>Jon Kannegard
      <OPTION VALUE=Micelleaneous_Authority_Figure>Micellaneous Authority Figure
      </SELECT><p>


      To Change the world press this button:<p> <INPUT TYPE="submit"
      VALUE="BUTTON DETERMINES WHO SHALL SUBMIT">. <P>


      </FORM>



      </BODY>
      </HTML>


      edmund.lou@eng 1999-10-19

            svioletsunw Scott Violet (Inactive)
            elousunw Edmund Lou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: