I am a high school student taking cs106a at Stanford via video.
For my current assignment I have to add GObjects and position them relative to the size of the window.
I am currently trying to get the width of the window using the command
int width = getWidth();
however width = 0
One thing that could be causing this: this is one of the first programs I have written using multiple classes.
Thanks for the help!