how do I add an existing class into an existing project. I've got the file "Something.class" and in the code I do a
something window = new Something();
But it remains underlined in red. Does someone know how do I fix this?
Thanks!!
If it's not already part of your workspace, it should be enough just to File -> Import and then find the class you want included. If it's already part of the workspace, then Tommi's suggestion should do it.
You need to import the class into the referencing class. Ctrl + Space (while highlighting the classname) should do the trick in Eclipse.