I created a class in a separate TAB but I still get the “The class Test does not exist”. If I move the class code into the main tab it works fine. What do I need to do to import the class?
In main tab:
Test t1 = new Test();
t1.fname = "Per";
In the Test tab:
class Test{
String fname;
String lname;
Test(){}
}
Don’t name your class the same thing as the tab it’s in. While this is usually fine in most programming languages, I’ve seen it cause problems in Processing. Just try renaming your Test tab to TestClass, and see if that helps.
This happens because Processing is hiding details from you about how things are done behind the scenes.