Word Processor format options

From: yorkmac (yorkmac_at_hotmail.com)
Date: 03/29/05


Date: Tue, 29 Mar 2005 07:33:15 -0500

i am building a word processor thast includes format options such as bold
underline font styles, sizes excetera. they are added to the format menu
bar.

 Action action = new StyledEditorKit.ItalicAction();
    action.putValue(Action.NAME ,"Italic");
    item = formatMenu.add(action);

my problem is that when i run the program when ever a press the enter
button the action goes back to its default setting. any suggestion would
be helpful


Quantcast