Search:

Type: Posts; User: Junky

Search: Search took 0.11 seconds.

  1. Replies
    12
    Views
    1,828

    Re: Translating old program to java

    Well **** me. I always thought the constants in the Color class were all uppercase. Using setBackground should work. Did you get an error or did it just not work. If you got an error post it here. If...
  2. Replies
    12
    Views
    1,828

    Re: Translating old program to java

    Java is case sensitive.
  3. Replies
    12
    Views
    1,828

    Re: Translating old program to java

    possible loss of precision

    The return value of the Math.sqrt method is a double. You are trying to assign it to an int. This means that if the method returns 1.5 and you cram it into an int it can...
  4. Replies
    12
    Views
    1,828

    Re: Translating old program to java

    If you are talking about 9 / 2 gives 4 and not 4.5 that is because you are doing integer division and the result will be an integer. If you want a floating point result then you will need to do...
  5. Replies
    12
    Views
    1,828

    Re: Translating old program to java

    It would be easier if your copied and pasted the full and exact error message separately and not embed what you think the error message says in the middle of your code so we have to hunt them down.
    ...
Results 1 to 5 of 5