JTextPane and StyledDocument question

I was just wondering if it is necessary to have a StyledDocument that is added to the JTextPane, or if it is acceptable to have all the components (JLabels in my case) added to the JTextPane rather than a StyledDocument?

Right now I basically have a JTextPane with a few JLabels in it that is added to a JPanel. This works fine, but I think I might run into a problem if I need to add any text other than JLabels. Any help is appreciated... sorry if this doesn't make much sense.

dub

[503 byte] By [dub_styleea] at [2007-11-27 2:32:45]
# 1
> but I think I might run into a problem if I need to add any text other than JLabelsWhy are you adding only labels to a JTextPane. That is what a JPanel is for.
camickra at 2007-7-12 2:48:42 > top of Java-index,Desktop,Core GUI APIs...
# 2
The reason I was using a JTextPane is so that I could use text as well as objects. Right now all I have are JLabels though.
dub_styleea at 2007-7-12 2:48:42 > top of Java-index,Desktop,Core GUI APIs...