Java Swing Text Style createStyle(String logicalName)

Here you can find the source of createStyle(String logicalName)

Description

create Style

License

Apache License

Declaration

public static Style createStyle(String logicalName) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.swing.text.Style;

import javax.swing.text.StyleContext;

public class Main {
    public static final StyleContext styleContext = new StyleContext();

    public static Style createStyle(String logicalName) {
        Style result = styleContext.addStyle(logicalName, null);
        return result;
    }// w w w  .j a  v a  2  s .  co m
}

Related

  1. getBooleanValue(Element element, Object constant)
  2. getIntegerValue(Element element, Object constant)
  3. getNextVisualPosition(final View v, final int pos, final Position.Bias b0, final int direction, final Position.Bias[] biasRet)
  4. hasDifferentCharacterAttributes(AttributeSet style, AttributeSet base)