Understanding Text pane use
I am attempting to allow the fonts to be changed when using a text pane and I am having some trouble understanding it.
I have read the sun tutorials, and I have read a few examples of how to change fonts with the text pane, many of these examples modify pre written font to be one type of font.
I am just having a hard time figuring out where to start(I know threads like these are frownedupon) but I am kind of going in a thought circle of what I am supposed to do.
I am confused, do I modify the document? Im assuming caret listeners are needed. Is there a way to set the caret to produce a certain font from the caret until changed? Im assuming to edit the selected text you need to use a caret listener for the mark and dot. Also, I want all this to happen when I make changes to a drop box. I haven't really given it too many attempts(mainly because I am unsure where to start).
Please help me out, and feel free to let me know what details I left out.