You can use Path Tools plugin (you have to download it from the site and install by manually adding it in downloaded section in NetBeans plugin menu)
There is also more recent plugin QuickOpener for newer NetBeans versions.
Other nice plugin that offers this functionality is CoolEditorActions, available through update center in Infrastuture category.