Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.ArrayList;
import java.util.List;

import javax.swing.JTextPane;
import javax.swing.text.TabStop;

public class Main {
    public static void main(String[] argv) {
        // Create a text pane
        JTextPane textPane = new JTextPane();

        List list = new ArrayList();
        int pos = 400;
        int align = TabStop.ALIGN_DECIMAL;
        int leader = TabStop.LEAD_NONE;
        TabStop tstop = new TabStop(pos, align, leader);
        list.add(tstop);
    }
}