One of my biggest issue right now is figuring out exactly which API package to import to get my code to stop flagging me in NetBeans.
Take this bit of code in Netbeans, I have not imported the Player class yet.
If you click on the class declaration (in this example, the Player class (underlined in red)), hold down the Alt Key and press Enter you will see the following options pop up.
The top 'fix' is always the "Add import for X" (if it exists).
The Alt + Enter menu is a fantastic tool you should get used to using.
Hope that helps.