public static void main(String arg[]){
  Display display=new Display();
  Shell shell=new Shell(display);
  File file=JFileDataStoreChooser.showOpenFile("shp",shell);
  if (file != null) {
    MessageDialog.openInformation(shell,"INFO","Selected " + file.getAbsolutePath());
  }
 else {
    MessageDialog.openInformation(shell,"INFO","Selection cancelled");
  }
}

public static void main ( String arg [ ] ) { Display display = new Display ( ) ; Shell shell = new Shell ( display ) ; File file = JFileDataStoreChooser . showOpenFile ( "shp" , shell ) ; if ( file != null ) { MessageDialog . openInformation ( shell , "INFO" , "Selected " + file . getAbsolutePath ( ) ) ; } else { MessageDialog . openInformation ( shell , "INFO" , "Selection cancelled" ) ; } }
demonstrates the file data store dialog by prompting for a shapefile
