tags:

views:

151

answers:

1

I can't seem to figure out a way for an editor kit to work for only one JTextPane. Every time I implement one, it always functions for any JTextPane in the frame.

How can I fix this?

+1  A: 

Why not editorPane.setEditorKit(new MyKit(()) for each of your panes?

Ayman
That didn't work. I'm using StyledEditorKit to make the Actions, and they seem to work for ANY JTextPane in the frame.
Evan Fosmark