Example usage for javax.swing JTextPane subclass-usage

List of usage examples for javax.swing JTextPane subclass-usage

Introduction

In this page you can find the example usage for javax.swing JTextPane subclass-usage.

Usage

From source file Main.java

public class Main extends JTextPane {

    public void appendNaive(Color c, String s) {
        SimpleAttributeSet aset = new SimpleAttributeSet();
        StyleConstants.setForeground(aset, c);

From source file Main.java

public class Main extends JTextPane {

    public void append(Color c, String s) {
        StyleContext sc = StyleContext.getDefaultStyleContext();
        AttributeSet aset = sc.addAttribute(SimpleAttributeSet.EMPTY, StyleConstants.Foreground, c);

From source file Main.java

class MyTextPane extends JTextPane {
    public MyTextPane() {
        super();
        setText("Hello World");
        setOpaque(false);
        setBackground(new Color(0, 0, 0, 0));

From source file Main.java

class HighlightLineTextPane extends JTextPane {
    public HighlightLineTextPane() {
        setOpaque(false);
    }

    @Override

From source file AppendingTextPane.java

public class AppendingTextPane extends JTextPane {
    public AppendingTextPane() {
        super();
    }

    public AppendingTextPane(StyledDocument doc) {

From source file ParenMatcher.java

public class ParenMatcher extends JTextPane implements Runnable {

    public static Color[] matchColor = { Color.blue, Color.magenta, Color.green };

    public static Color badColor = Color.red;

From source file simplealbum.mvc.autocomplete.JTextPaneX.java

/**
 *
 * @author elialva
 */
public class JTextPaneX extends JTextPane {

From source file org.nuxeo.launcher.gui.ColoredTextPane.java

/**
 * Colored text pane. Allow to choose the style when appending some text.
 *
 * @author jcarsique
 * @since 5.4.2
 */

From source file com.croer.javaorange.diviner.SimpleOrangeTextPane.java

/**
 *
 * @author elialva
 */
public class SimpleOrangeTextPane extends JTextPane {

From source file net.sf.jabref.help.HelpContent.java

public class HelpContent extends JTextPane {

    static Log log = LogFactory.getLog(HelpContent.class);

    JScrollPane pane;