How to set tab stops in jtextarea for different lengths,
first tab should stop 4
Second tab should stop at 20 (If i give tab from 4 it should stop at 20)
Third tab should stop at 30 (If i give tab from 0 it should stop at 30)
How to set tab stops in jtextarea for different lengths,
first tab should stop 4
Second tab should stop at 20 (If i give tab from 4 it should stop at 20)
Third tab should stop at 30 (If i give tab from 0 it should stop at 30)
Copyright © 2021 Jogjafile Inc.
Try something like this.
When you create the
JTextArea
, use theDocument
constructor.