JDK-4282700 : JEditorPane: Checkbox component is not rendering in the proper place.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.3.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 1999-10-19
  • Updated: 2000-06-30
  • Resolved: 2000-06-30
Related Reports
Duplicate :  
Description
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

Comments
WORK AROUND
11-06-2004

SUGGESTED FIX
11-06-2004

PUBLIC COMMENTS
10-06-2004

EVALUATION As part of fixing 4200439, forms are now modeled correctly. This resulted in fixing this particular display problem. scott.violet@eng 2000-06-30
30-06-2000