package net.katsuster.strview.ui;

import java.util.*;
import java.io.*;
import java.awt.HeadlessException;

import javax.swing.*;

import net.katsuster.strview.util.*;
import net.katsuster.strview.io.*;
import net.katsuster.strview.gui.*;
import net.katsuster.strview.media.ts.*;

/**
 * メインクラス。
 */
public class Main {
    protected Main() {
        //do nothing
    }

    public static void main(String[] args) {
        FileDropWindow w = null;

        if (args.length > 0) {
            String fname = args[0];
            List<File> flist = new ArrayList<File>();

            flist.add(new File(fname));

            LargeBitList blist = new ByteToBitList(new FileByteList(fname));
            TSPacketList tslist = new TSPacketList(blist);

            tslist.count();

            for (TSPacket a : tslist) {
                System.out.println(a);
            }
        }

        try {
            //Look and Feel をシステム標準に変更する
            try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
            } catch (Exception ex) {
                ex.printStackTrace();
                return;
            }

            //結果表示用のフレームを作成する
            w = new FileDropWindow();
            w.setTitle("bined");
            w.setSize(300, 100);
            w.setVisible(true);
        } catch (HeadlessException ex) {

        }
    }
}

@@ -273,16 +273,100 @@
 ia.ts.*;
+%0Aimport net.katsuster.strview.media.mkv.*;%0Aimport net.katsuster.strview.media.m2v.*;
 %0A%0A/**%0A *
@@ -764,24 +764,25 @@
 st(fname));%0A
+%0A
             
@@ -781,16 +781,18 @@
         
+/*
 TSPacket
@@ -830,17 +830,16 @@
 blist);%0A
-%0A
         
@@ -854,25 +854,24 @@
 st.count();%0A
-%0A
             
@@ -946,24 +946,397 @@
            %7D
+*/%0A%0A            /*MKVTagList mkvlist = new MKVTagList(blist);%0A            //mkvlist.count();%0A            for (MKVTag a : mkvlist) %7B%0A                System.out.println(a);%0A            %7D*/%0A%0A            /*M2VDataList m2vlist = new M2VDataList(blist);%0A            //m2vlist.count();%0A            for (M2VData a : m2vlist) %7B%0A                System.out.println(a);%0A            %7D*/
 %0A        %7D%0A%0A
@@ -1703,13 +1703,15 @@
 le(%22
-bined
+strview
 %22);%0A

Add test codes.