Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    9
    Views
    1,089

    Re: Can someone please explain this code for me?

    It defines a String variable, calls a method and assigns what is returned by the method to the variable.

    Read the API doc for the method to see what is in the String that is returned.
  2. Replies
    9
    Views
    1,089

    Re: Can someone please explain this code for me?

    That is assuming there is a connection between key presses and the method. The code does not show there is any connection.


    It calls a method (setText) with an arg of an empty String: "" (no...
  3. Replies
    9
    Views
    1,089

    Re: Can someone please explain this code for me?

    Now what I called pre-processor code has changed to slanting "s that aren't available on my keyboard.
    An empty String from my keyboard would look like: "" vs the “” in the posted code. I guess the...
  4. Replies
    9
    Views
    1,089

    Re: Can someone please explain this code for me?

    Where did you get the code?
    When the method is called it makes a test of the contents of its arg and if the test is true it calls some methods.

    Read the API doc for the KeyEvent class and its...
Results 1 to 4 of 4