This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
A file in favorites that is executable (has a main function) should be runnable from favorites, to prevent the need to flip back to file or project view.
This works for me in the latest 4.0 build. Please note that the file has to be in a project in order to run it.
Reorganization of java component