String[] fonts = FontList.getFontList();
String title = ResourceUtils.getResourceString(FrameResources.SET_FONT_TITLE);
String label = ResourceUtils.getResourceString(FrameResources.SET_FONT_LABEL);
DialogFactory fontF = createObjectDialogFactory(title,
label,
TextAttribute.FAMILY,
StyleMenuItemSet.CHARACTER,
fonts,
fonts);
new DialogItem(ResourceUtils.getMenuData(FrameResources.FONT_DIALOG),
fontF).setTextPanel(fTextPanel);
DialogFactory foregroundF = createColorDialogFactory(true);
DialogFactory backgroundF = createColorDialogFactory(false);
new DialogItem(ResourceUtils.getMenuData(FrameResources.FORECOLOR_DIALOG),
foregroundF).setTextPanel(fTextPanel);
new DialogItem(ResourceUtils.getMenuData(FrameResources.BACKCOLOR_DIALOG),
backgroundF).setTextPanel(fTextPanel);