Netbeans: Automatically Select Current File in Projects

Solution 1:

Try ViewSynchronize Editor with Views (it should be selected)