tags:

views:

27

answers:

0

Using NetBeans and custom JavaBeans. The users will create new user interface projects in the directory they choose, and when a JavaBean is dragged and dropped onto the user interface in the project, the JavaBeans needs to know the directory of the project in which it is used, because it will sopy resource files there. The file copy should be transparent to the users at the time they add the JavaBean to the user interface.
How can the JavaBean get this directory? It would not be an environment variable, etc., as the users would not always create projects in the same directory.