Search:

Type: Posts; User: copeg

Search: Search took 0.29 seconds.

  1. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    Read the exception:


    Looks like line 48 of your MainClass.

    PrintStream (System.out) contains print statements for all sorts of data types, not just primitives. To reiterate, go to the line...
  2. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    null means an object has not been instantiated. In the following code...


    String myValue;

    ...myValue will be null.
  3. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    What is null on that line of code? Add some println's in there to see (hint: where do you initialize the instance variables?)
  4. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    Please check your private messages. Lets leave this discussion outside this thread for fear of getting off the main topic at hand.
  5. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    Yes you need a listener of some sort - an ActionListener your best bet (which you can add to a JTextField). See How to Write an Action Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing >...
  6. [SOLVED] Re: Is there a way to make things happen if a certain text is entered in a TextField?

    Manoj Kumar Chhetri, please read the forum rules. I would also highly recommend that you read following:
    The Problem with Spoon-feeding
    I am stopping short of removing your code, but that does not...
Results 1 to 6 of 6