Pass a reference to your DrawMenu class with your MainClass in the constructor. Then within DrawMenu you can call instance methods from the MainClass reference
Something like this:


public class...