When using the code:
Action sizeAction = new StyledEditorKit.FontSizeAction(String.valueOf(size), size);
The button the action is assigned to inserts the HTML tags:
<FONT SIZE="5"> My text here </FONT>
This gives a very inaccurate scale of font size when I go to perform other functions. Instead what I want is to insert a style tag to change the font size with, e.g.
<FONT STYLE="font-size: 16pt;"> My text here </FONT>
How would I go about changing the TAGS that the FONTSIZE action inserts?
Found a better way to fix the problem! Just create a new Action and change the way attributes are added.