Java Swing Font getHelpTextArea(String help, Color background, Font font)

Here you can find the source of getHelpTextArea(String help, Color background, Font font)

Description

get Help Text Area

License

Apache License

Declaration

public static JTextArea getHelpTextArea(String help, Color background, Font font) 

Method Source Code

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

import javax.swing.JTextArea;

import java.awt.Color;

import java.awt.Font;

public class Main {
    public static JTextArea getHelpTextArea(String help, Color background, Font font) {
        JTextArea helpText = new JTextArea(help);
        helpText.setLineWrap(true);/*  ww w. j a va  2 s  . c o  m*/
        helpText.setWrapStyleWord(true);
        helpText.setBackground(background);
        helpText.setFont(font);
        helpText.setEditable(false);
        return helpText;
    }
}

Related

  1. getDefaultFont()
  2. getDefaultLabelBoldFont()
  3. getDefaultLabelFont()
  4. getFont(String name)
  5. getFontColorToUse(boolean isSelected)
  6. getMultiLineTextForBBox(JComponent comp, double bboxWth, String txt, Font font)
  7. increaseDefaultFont(float multiplier)
  8. initGlobalFont(Font font)
  9. installColorsAndFont(Component c, Color background, Color foreground, Font font)