Java JTextArea setCeil(final JTextArea textArea)

Here you can find the source of setCeil(final JTextArea textArea)

Description

set Ceil

License

Apache License

Declaration

public static void setCeil(final JTextArea textArea) 

Method Source Code

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

import java.awt.Point;

import javax.swing.JTextArea;
import javax.swing.JViewport;

import javax.swing.SwingUtilities;

public class Main {

    public static void setCeil(final JTextArea textArea) {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                JViewport v = (JViewport) textArea.getParent();
                v.setViewPosition(new Point(0, 0));
            }/*from  w  w w  .j  a v a 2 s  .c o  m*/
        });
    }
}

Related

  1. printStackTrace(Exception e, JTextArea console)
  2. printStream(final JTextArea ta)
  3. registerUndoManager(JTextArea textArea)
  4. setCaretPosition(int i, int j, JTextArea jtextarea)
  5. setCaretPosition(JTextArea ta)
  6. setModelValue(JTextArea ta, String value)
  7. setTextSafe(JTextArea textArea, String value)
  8. showMemo(JTextArea memo, boolean visible)
  9. textAreaAsLabel(JTextArea textArea)