Java JTextArea clearTextArea(JTextArea textArea)

Here you can find the source of clearTextArea(JTextArea textArea)

Description

clear Text Area

License

Apache License

Declaration

private static void clearTextArea(JTextArea textArea) 

Method Source Code

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

import javax.swing.JTextArea;

public class Main {
    private static void clearTextArea(JTextArea textArea) {
        if (textArea.getLineCount() > 200) {
            textArea.setText("");
        }/*  w  w  w.  j  a v  a  2 s . c  o  m*/
    }
}

Related

  1. adjustToText(JTextArea testString)
  2. appendNewLine(final JTextArea textArea, final String line)
  3. applyDefaultProperties(final JTextArea comp)
  4. attachSimpleUndoManager(JTextArea jta)
  5. blockUncomment(JTextArea scriptPanel)
  6. columns(JTextArea testString)
  7. commentSQL(JTextArea scriptPanel, String commentCharacter)
  8. copyFontAndMargins(final JTextArea target, final JComponent source)
  9. createTabArea(JTextArea area, int width)