When you plugin your iPhone (or iPod touch) into your Mac either iPhoto or Aperture get automatically launched. Reason for this is so any photos can be imported from the iPhone to your Mac.
You can disable this (or change the application that is started) using the “Image Capture” application (located in the Applications folder). Start up Image Capture and select your iPhone in the Devices list. Once thats done you should have a drop down at the bottom of the list that allows you to select which application you want to automatically launch whenever the iPhone is plugged in.
Hope you find this useful.
If you have a CSV (or TSV) that you need to display in a JTable then you should have a look at the TableModelExtTextLoader class from SwingLabs.
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);
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”
If you require multiple imports then you can either use multiple import page directives, or specify them all in one page directive which each import commas separated
Multiple import directives
<%@ page import="java.util.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.net.*" %>
One import directive (comma separated)
<%@ page import="java.util.*, java.io.*, java.net.*" %>