Java's this keyword makes a reference to the object that is current being coded.
It is most commonly used when you have a parameter variable that shadows a field, like this:
//Let's say name is...
Type: Posts; User: snowguy13
Java's this keyword makes a reference to the object that is current being coded.
It is most commonly used when you have a parameter variable that shadows a field, like this:
//Let's say name is...
Oh! I see what you want! You want ten lines to be drawn total, as fractions of the width of the panel, I think. To do this, you can't just continue using...
width = (100 * 0) / 10
Width keeps...
Here lies a problem, though I'm not sure it's THE problem.
int width = getWidth();
int height = getHeight();
int widthCounter = 0;
int heightCounter = 10;
//... other code ...
while...