Java JTextArea showMemo(JTextArea memo, boolean visible)

Here you can find the source of showMemo(JTextArea memo, boolean visible)

Description

show Memo

License

Apache License

Declaration

public static void showMemo(JTextArea memo, boolean visible) 

Method Source Code

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

import javax.swing.JScrollPane;

import javax.swing.JTextArea;

public class Main {
    public static void showMemo(JTextArea memo, boolean visible) {
        memo.setVisible(visible);// ww w. j  a  v a  2  s .c o m
        if (memo.getParent() instanceof JScrollPane)
            memo.getParent().setVisible(visible);
        else if (memo.getParent().getParent() instanceof JScrollPane)
            memo.getParent().getParent().setVisible(visible);

    }
}

Related

  1. setCaretPosition(int i, int j, JTextArea jtextarea)
  2. setCaretPosition(JTextArea ta)
  3. setCeil(final JTextArea textArea)
  4. setModelValue(JTextArea ta, String value)
  5. setTextSafe(JTextArea textArea, String value)
  6. textAreaAsLabel(JTextArea textArea)
  7. validarArticuloDescripcion(JTextArea descripcion, KeyEvent evt)
  8. validateView(JTextArea view)