107108109110111112113114115116117
public void openTerrain() { if(jfc == null) { jfc = new JFileChooser(new File("./")); jfc.addChoosableFileFilter(new TerrainFileFilter()); } int result = jfc.showOpenDialog(null); if(result == JFileChooser.APPROVE_OPTION) {
159160161162163164165166167168169
private JFileChooser getTerrainJFC() { if(terrainJFC == null) { terrainJFC = new JFileChooser("./"); //$NON-NLS-1$ terrainJFC.addChoosableFileFilter(new TerrainFileFilter()); } return terrainJFC; }