public static void setStyles() {
        sc = StyleContext.getDefaultStyleContext();
        style = sc.getStyle(StyleContext.DEFAULT_STYLE);
        chatStyle = sc.addStyle("Defaultstyle", style);
        timestampStyle = sc.addStyle("Defaultstyle", style);
        actionStyle = sc.addStyle("Defaultstyle", style);
        errorStyle = sc.addStyle("Defaultstyle", style);
        serverStyle = sc.addStyle("Defaultstyle", style);
        connectStyle = sc.addStyle("Defaultstyle", style);
        ctcpStyle = sc.addStyle("Defaultstyle", style);
        userNameStyle = sc.addStyle("Defaultstyle", style);
        disconnectStyle = sc.addStyle("Defaultstyle", style);
        joinStyle = sc.addStyle("Defaultstyle", style);
        hyperlinkUnclickedStyle = sc.addStyle("Hyperlink", null);
        highlightStyle = sc.addStyle("Highlight", null);
        chatListStyle = sc.addStyle("Defaultstyle", style);

        StyleConstants.setFontFamily(style, chatFont);
        StyleConstants.setFontSize(style, chatFontSize);

        if (chatFontStyle.contains("BOLD")) StyleConstants.setBold(style, true);
        else StyleConstants.setBold(style, false);
        if (chatFontStyle.contains("ITALIC")) StyleConstants.setItalic(style, true);
        else StyleConstants.setItalic(style, false);

        User.changeFont(Font.decode(GUI.userListFont+"-"+GUI.userListFontStyle+"-"+GUI.userListFontSize));

        StyleConstants.setForeground(chatStyle, Color.decode(chatColor));
        StyleConstants.setForeground(timestampStyle, Color.decode(timestampColor));
        StyleConstants.setForeground(actionStyle, Color.decode(actionColor));
        StyleConstants.setForeground(errorStyle, Color.decode(errorColor));
        StyleConstants.setForeground(serverStyle, Color.decode(serverColor));
        StyleConstants.setForeground(connectStyle, Color.decode(connectColor));
        StyleConstants.setForeground(disconnectStyle, Color.decode(disconnectColor));
        StyleConstants.setForeground(joinStyle, Color.decode(joinColor));
        StyleConstants.setForeground(hyperlinkUnclickedStyle, (Color.blue));
        StyleConstants.setFontFamily(hyperlinkUnclickedStyle, chatFont);
        StyleConstants.setFontSize(hyperlinkUnclickedStyle, chatFontSize);
        StyleConstants.setUnderline(hyperlinkUnclickedStyle, true);
        StyleConstants.setFontFamily(highlightStyle, chatFont);
        StyleConstants.setFontSize(highlightStyle, chatFontSize);
        StyleConstants.setBackground(highlightStyle, Color.YELLOW);
    }