Salut,

J'ai du mal à comprendre un point dans la doc :

Ici sur PlainDocument il est dit :

A class that implements the Document interface. This is the default document for the plain text components (text field, password field, and text area). Additionally, this class is used by the editor panes and text panes when loading plain text or text of an unknown format.
Et ici on lit :

Editor panes, by default, know how to read, write, and edit plain, HTML, and RTF text. Text panes inherit this capability but impose certain limitations. A text pane insists that its document implement the StyledDocument interface. HTMLDocument and RTFDocument are both StyledDocuments so HTML and RTF work as expected within a text pane. If you load a text pane with plain text though, the text pane's document is not a PlainDocument as you might expect, but a DefaultStyledDocument.
Alors quand on charge un "texte pane" avec un "plain text", quel sera le document du "text pane", un "PlainDocument" ou un "DefaultStyledDocument" ?

Merci.