站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.0.0

ProjectChooser (NetBeans Project UI API) - NetBeans API Javadoc 5.0.0

 

org.netbeans.spi.project.ui.support
Class ProjectChooser

java.lang.Object
  extended byorg.netbeans.spi.project.ui.support.ProjectChooser

public class ProjectChooser
extends Object

Support for creating project chooser.


Method Summary
static File getProjectsFolder()
          Returns the folder last used for creating a new project.
static JFileChooser projectChooser()
          Creates a project chooser.
static void setProjectsFolder(File folder)
          Sets the folder last used for creating a new project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProjectsFolder

public static File getProjectsFolder()
Returns the folder last used for creating a new project.

Returns:
File the folder, never returns null. In the case when the projects folder was not set the home folder is returned.

setProjectsFolder

public static void setProjectsFolder(File folder)
Sets the folder last used for creating a new project.

Parameters:
folder - The folder to be set as last used. Must not be null

projectChooser

public static JFileChooser projectChooser()
Creates a project chooser.

Returns:
New instance of JFileChooser which is able to select project directories.

 

Built on May 3 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.