Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4134399
Votes 0
Synopsis StyledDocument has no top-level specification
Category java:classes_swing
Reported Against 1.2beta3
Release Fixed
State 3-Accepted, bug
Priority: 4-Low
Related Bugs
Submit Date 01-MAY-1998
Description


The Javadoc documentation page for interface
java.awt.swing.text.StyledDocument has no
top-level description of how StyledDocument models
a styled document.

The interface description says only:

    Interface for a generic styled document. 


For example, it doesn't specify any required
or assumed structure of the elements representing
the document.  

  From getParagraphElement and getCharacterElement,
one can tell that a styled document is assumed to
contain paragraphs.  However, any requirements on
the structure of elements is not defined.

Also note the description of getCharacterElement:

    Gets the element that represents the character
    that is at the given offset within the document.

That is a bit ambiguous--it almost implies that 
a character element represents one character,
although one can (apparently) represent a sequence
of adjacent characters.
(Review ID: 28199)
======================================================================
Posted Date : 2005-10-14 08:59:23.0
Work Around
N/A
Evaluation
N/A
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang