How can I limit StyledEditorKit.AlignmentAction() to only work with some JTextPanes?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Lars_Ilebrekke
Posted On:   Wednesday, August 22, 2001 04:59 AM

I'm using a panel with many JTextPanes, each of them with an own document. In one document I want to use alignment actions, but not in all the others.

I've tried to extend AlignmentAction. Then I can control which document the action will affect. The problem is that I cannot understand how I can invoke the action (super class) after controlling that it is invoked on the correct document. This is probably easy, but I'm stuck. I'm greateful for any help, thanks.


Lars

About | Sitemap | Contact