It provides all you should need and save you the hassle of reinventing the wheel and using a half baked CSV implementation.
Here is an example of it’s usage.
URL csv = new URL("http://myapp/employees.csv"); DefaultTableModelExt data = new DefaultTableModelExt(url); TableModelExtTextLoader loader = new TableModelExtTextLoader(",", false, 75); data.setLoader(loader); data.startLoading();
As many of you will probably have a file from disk that you want to load then see “How to convert a File to a URL”
Leave a Reply
You must be logged in to post a comment.