Java JTextComponent Delete modelToView(final JTextComponent scrollableComponent, int pos)

Here you can find the source of modelToView(final JTextComponent scrollableComponent, int pos)

Description

model To View

License

Open Source License

Declaration

private static Rectangle modelToView(final JTextComponent scrollableComponent, int pos) 

Method Source Code


//package com.java2s;
import javax.swing.text.BadLocationException;
import javax.swing.text.JTextComponent;
import java.awt.*;

public class Main {
    private static Rectangle modelToView(final JTextComponent scrollableComponent, int pos) {
        try {// ww  w.  j a v  a2s.c  o m
            return scrollableComponent.modelToView(pos);
        } catch (BadLocationException exception) {
            throw new RuntimeException(exception);
        }
    }
}

Related

  1. appendText(JTextComponent fld, String s, String delimiter)
  2. delete(JTextComponent textComponent)
  3. deleteLine(JTextComponent textComponent)
  4. deleteSelection(JTextComponent textComponent)
  5. deleteWord(JTextComponent textComponent)