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

JEditorPane: Checkbox component is not rendering in the proper place.

XMLWordPrintable

      The checkbox is rendering right next to the text. In fact, this seemed to have happened for other components as well which includes radio buttons and some text fields. This may be a problem in the <form> tag, but this cannot be confirmed.

      A sample HTML file is included to help assess the problem:

      <!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 Input Element Check Box Attribute Type </h1>
                <h2>Definition</h2><em>type=checkbox</em>
      Used for simple Boolean attributes, or for attributes that can
      take multiple values at the same time. The latter is represented
      by several checkbox fields with the same name and a different
      value attribute. Each checked checkbox generates a separate
      name/value pair in the submitted data, even if this results in
      duplicate names. Use the checked attribute to initialize the
      checkbox to its checked state.

      <hr>
      <h2>Expected Results</h2>
      The following check box test descriptions are true
      <br>and No HTML Errors are found
      <br>You should be able to toggle the state of the checkboxes.
      <p>This form field contains a checkbox that is checked
      <FORM>
      <input type=checkbox checked name=uscitizen value=yes>US Citizen
      </FORM>

      <p>This form field contains a checkbox that is not checked
      <FORM>
      <input type=checkbox name=uscitizen value=yes>US Citizen
      </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: