Search:

Type: Posts; User: snowguy13

Search: Search took 0.09 seconds.

  1. [SOLVED] Re: (Total begginner) simple GUI program nt displayin

    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...
  2. [SOLVED] Re: (Total begginner) simple GUI program nt displayin

    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...
  3. [SOLVED] Re: (Total begginner) simple GUI program nt displayin

    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...
Results 1 to 3 of 3