private void init( String key, int token, Font baseFont ) {
			String prefix = "FlatThemeEditorPane.style.";
			Color fg = UIManager.getColor( prefix + key );
			Color bg = UIManager.getColor( prefix + key + ".background" );
			boolean italic = UIManager.getBoolean( prefix + key + ".italic" );
			Font font = Style.DEFAULT_FONT;
			if( italic )
				font = baseFont.deriveFont( Font.ITALIC );
			getStyles()[token] = new Style( fg, bg, font );
		}
A pane that supports editing FlatLaf themes.

@author Karl Tauber
flatlaf-theme-editor/src/main/java/com/formdev/flatlaf/themeeditor/FlatThemeEditorPane.java