List of usage examples for javax.swing JTextArea getTabSize
public int getTabSize()
From source file:Main.java
public static void main(String[] argv) { JTextArea textarea = new JTextArea(); // Get the default tab size int tabSize = textarea.getTabSize(); // 8 // Change the tab size tabSize = 4;/* w w w . j a va 2 s . c o m*/ textarea.setTabSize(tabSize); Font font = textarea.getFont(); System.out.println(font); }