Default Font in JEditPane
Posted on 2004-03-30
I'm going crazy trying to figure out how to set the default Font that a JEditPane should use. I'm using JEditPane as a TableCellEditor and TableCellRenderer, so even if I manage to set the Font used by the editor when inserting new text, I can't find a way to make the JEditPane use a specific Font when setting the text on an empty pane...
I'm using the StyledEditorKit (I need to be able to count the number of lines in the pane... even when they are wrapped).
I appreciate any help here...