Java Code Examples for javax.swing.JTextArea.getLineWrap()

The following are Jave code examples for showing how to use getLineWrap() of the javax.swing.JTextArea class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: VASSAL-src   File:   Source Code and License Vote up 5 votes
public View create(javax.swing.text.Element elem) {
  JTextComponent c = getComponent();
  if (c instanceof JTextArea) {
    JTextArea area = (JTextArea) c;
    View v;
    if (area.getLineWrap()) {
      v = new WrappedView(elem, area.getWrapStyleWord());
    else {
      v = new PView(elem);
    return v;
  return null;