Create a right-aligned tab stop at 200 pixels from the left margin
import java.util.ArrayList;
import java.util.List;
import javax.swing.text.TabStop;
public class Main {
public static void main(String[] argv) {
List list = new ArrayList();
int pos = 200;
int align = TabStop.ALIGN_RIGHT;
int leader = TabStop.LEAD_NONE;
TabStop tstop = new TabStop(pos, align, leader);
list.add(tstop);
}
}
Related examples in the same category