Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Re: I have a problem with reading 5 strings from an AWT dialog window.

    How many different intr objects are created? If you only have one then the contents of the object will be from the last time it was changed. Make sure you have more than one intr object.

    Did you...
  2. Re: I have a problem with reading 5 strings from an AWT dialog window.

    You need to add ids to your printouts to show which println printed them:

    System.out.println("iA[o].get=" + intrArray[0].getIntrebare());


    intrArray[i] = intr; // here...
  3. Re: I have a problem with reading 5 strings from an AWT dialog window.

    Where is the value of one object assigned to the other?
  4. Re: I have a problem with reading 5 strings from an AWT dialog window.

    Sorry, without seeing the code I can't make any suggestions.
  5. Re: I have a problem with reading 5 strings from an AWT dialog window.

    I don't understand what you are describing.
    Are you saying that two objects are different in one place and the same in another?
    Is there code that assigns the value of one to the other?
  6. Re: I have a problem with reading 5 strings from an AWT dialog window.

    Try debugging by print out the values as they are changed to see how they get to be the same.
  7. Re: I have a problem with reading 5 strings from an AWT dialog window.

    Where do assign a value to the element i in the intr[] array?
    What is the value of i with you get the exception?
    Have that many elements been put into the array?
    Add a println in the code that...
  8. Re: I have a problem with reading 5 strings from an AWT dialog window.

    What variable on line 20 is null? Back track in your code to see why it doesn't have a value and change the code to give it a value.

    In the ListaCompletaIntrebari method you should check that you...
  9. Re: I have a problem with reading 5 strings from an AWT dialog window.

    There is a parameter to some of the file I/O classes constructors that allow you to append your output to an existing file.
  10. Re: I have a problem with reading 5 strings from an AWT dialog window.

    Why save into an object? If the data to be saved is String, you could write them to a file.

    Otherwise make a small program to show your problems with serialization and post it here with comments...
  11. Re: I have a problem with reading 5 strings from an AWT dialog window.

    What does the getText() method return?
    What methods does that class have that you can use to test if ...
  12. Re: I have a problem with reading 5 strings from an AWT dialog window.

    Where is the variable: tf1 given a value?

    BTW See my post #5
  13. Re: I have a problem with reading 5 strings from an AWT dialog window.

    What variable is null?
    You must find that so you can fix it.
    So look at the line where the exception occurs and see what variable is there.
  14. Re: I have a problem with reading 5 strings from an AWT dialog window.

    Look at line 123 in the mentioned source code. What variable at that line is null? Then look to see why it is null.
    If you can't see which variable is null, add a println before statement 123 to...
  15. Re: I have a problem with reading 5 strings from an AWT dialog window.

    Please copy and paste here the full text of your error messages.
Results 1 to 15 of 15