Search:

Type: Posts; User: New_Guy25

Search: Search took 0.09 seconds.

  1. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    You rock, that was awesome.... Thanks
  2. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    timer = new Timer(300, new ActionListener()
    {
    public void actionPerformed(ActionEvent e)
    {

    //textArea.setText("");
    ...
  3. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    The conflict is between my timer delay and my for loop. When I take this statment --> textArea.append(someline + "\n"); <--- out of the for loop and place it outside the brackets. My delay timer...
  4. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    .

    --- Update ---

    I would like to put a delay in my code but for loop conflicts with my timer.


    timer = new Timer(300, new ActionListener()
    {
    public void...
  5. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    ok cool, Thanks
  6. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    Hey Norm, Thanks for all the help...... I made a few changes and was finally able to figure out what my code needed.



    for loop(int j; j < 73 < j++)
    textArea.append((j + 1) + " : " +...
  7. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    I have work in a bit, I will have to get back to you later with my results...


    Thanks
  8. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    ok, so I have made some changes and now it prints the array in column form but with a bunch of zeros.




    while(Growth_nums!=null)
    {
    Growth_nums =...
  9. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    System.out.println("the results= "+ java.util.Arrays.toString(Growth_numbers1));
    text = text + java.util.Arrays.toString(Growth_numbers1);
    ...
  10. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    The array is perfect, your system println confirmed it. It confirms how many times the test occurred.

    I will work on the steps and get back to you in a bit.

    --- Update ---

    So, this is the...
  11. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    This is what I got in my console output when I inserted your System.out.println statement.

    the results= [0, 6, 10, 4, 4, 7, 2, 4, 6, 4, 5, 3, 1, 4, 4, 3, 0, 2, 5, 2, 0, 0, 0, 2, 3, 1, 0, 0, 3, 0,...
  12. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    Sorry, I'm still confused. I'm more of a visual person. I can't understand what exactly you are trying to get me to do. Looking at my code, I see that the following section below pretty much breaks...
  13. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    Yup, thats pretty much it. I have the code that makes the counts and now I just need it to print the results to the GUI exactly how it is.

    That last part "then print out the results" is pretty...
  14. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    The number before the : is a line number and the number after the : is number of times that growth has repeatedly occurred for that test.

    so for test 1: bacterial growth occurred 6 times.
    for...
  15. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    Where did the formatted date come from?

    It came from the col1.txt file from the original post. I forgot to post the col1.txt file in the last post, but I'll attach it in this post.

    ...
  16. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    Ok, so I have restarted my GUI application from scratch. I have tried using the "append" or "append toString" method and it did not quite work for me. I just couldn't figure it out.
    So, I have...
  17. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    Thanks, Im not too familiar with its capabilities but I will look into it and get back with my revised code and some info on wether or not I was succcessful with using the append function.
  18. Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    I am having trouble getting my GUI TEXTAREA field to resemble my console output. The GUI contains a short explanation of what I am looking for. I have tried converting the integer array to a string...
  19. Thread: Hi Everyone

    by New_Guy25
    Replies
    1
    Views
    660

    Hi Everyone

    I am super new here...
Results 1 to 19 of 19