11-03-2008 05:24 PM
How do you set an activerichtextfield to use a bold font? I tried doing this and it doesn't work. In the API it says setFont is inherited from RichTextField.
Font font_Bold=Font.getDefault().derive(Font.BOLD); ActiveRichTextField mo_Art_text = new ActiveRichTextField( "text" ); mo_Art_text.setFont(font_Bold);
Solved! Go to Solution.
11-03-2008 06:01 PM
ActiveRichTextField is much more complicated - it maintains arrays of fonts and and colors that align with regions (start and ending offsets) within the control.
I guess you can set up an array of one font and this will be assigned to the region at offset zero. See the API docs for RichTextField.