}
private JPanel createCustomizationPanel(String typeName) {
this.currentTypeName = typeName;
String defaultAnnotStyleName = CAS.TYPE_NAME_ANNOTATION;
Style defaultAnnotStyle = this.styleMap.get(defaultAnnotStyleName);
GridLayout layout = new GridLayout(0, 1);
JPanel topPanel = new JPanel(layout);
this.textPane = new JTextPane();
Style style = this.styleMap.get(typeName);
if (style == null) {
style = defaultAnnotStyle;
}
Style defaultStyle = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
this.textPane.addStyle(defaultStyleName, defaultStyle);
setCurrentStyle(style);
this.fgColor = StyleConstants.getForeground(this.currentStyle);
this.bgColor = StyleConstants.getBackground(this.currentStyle);
this.fgIcon = new ColorIcon(this.fgColor);