Search:

Type: Posts; User: Norm

Page 1 of 20 1 2 3 4

Search: Search took 4.65 seconds.

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

    Where is the loop that wraps the 4 steps?
    Do some more debugging. Add a println() inside of the loop that goes through the results array and have it print out the test number and the results...
  2. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    What you posted does not use the 4 steps.
    The 4 steps in post #7 need to be inside of a loop that gets the data items one at a time from the array.


    Do you know how to access the elements in an...
  3. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    can you post the code that does the 4 steps shown in post#7
    Those steps should produce this:
  4. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    That output is for debugging so you can visually check the results.
    Do the results look ok?
    If so, that println() can be commented out of the code.

    If the results are good, use the 4 steps I...
  5. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    Have you visually verified that the computed results are correct? Add a println() statement that prints out the computed results. For example if the results are in an array:...
  6. Re: Need help ASAP (Submission is in two hours) :(

    Read the API doc for the Random class's constructor to see what kind of arg it takes.

    The compiler can not find a definition for the variable: length
    Where is it supposed to be defined?


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

    Where are the results? The code should use a simple loop that appends the 4 things I listed in post#7. The data item would be the next value from where the results are stored.
  8. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    Ok, so the data needs to be read and the counts for each test accumulated before the report is generated.

    The first step is to make the counts.
    when that works
    then print out the results
  9. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    If the desired output is this:
    1: 6
    2: 10
    etc

    I assume the number before the : is a line number and the number after the : is the data being read from the file.

    To have that put into the...
  10. Re: Java GUI Problem, I am having trouble getting my TextArea to resemble console output.

    That String is what is returned by the toString() method for an int array.
    If you want to see the contents of the array, use the Arrays class's toString() method to format the array:...
  11. Replies
    1
    Views
    28

    Re: Get all controls names on a layout

    Can you give an example of what you mean by the name of a control?

    What did you get when you executed the posted code? Print out the value of child for some info from the object.
  12. Replies
    7
    Views
    52

    Re: PLEASE HELP ME WITH THIS PROBLEM

    There are no programmers for hire here.

    Since you are not showing any effort to work on your problem:
    Thread closed
  13. Replies
    6
    Views
    47

    Re: Error in Progress Bar

    The NullPointerException is caused by a null value somewhere. You need to find where the null value is and change the code to get rid of the null value.


    What variable is that?
    A value of 1 is...
  14. Replies
    7
    Views
    52

    Re: PLEASE HELP ME WITH THIS PROBLEM

    Why not hire a programmer if you are not interested in learning java.
  15. Replies
    6
    Views
    47

    Re: Error in Progress Bar

    What variable has the null value that is causing the NullPointerException? The value in that variable is what needs to be fixed.
  16. Replies
    6
    Views
    47

    Re: Error in Progress Bar

    Duplicate threads merged.


    What variable on line 98 has a null value? Then backtrack to see why the value is null.
  17. Replies
    7
    Views
    52

    Re: PLEASE HELP ME WITH THIS PROBLEM

    Please edit your post and wrap your code with code tags:


    YOUR CODE GOES HERE

    to get highlighting and preserve formatting.


    Make a list of the steps the program must do to solve the...
  18. Replies
    7
    Views
    52

    Re: PLEASE HELP ME WITH THIS PROBLEM

    What have you tried?

    Be sure to wrap any posted code in code tags.
  19. Replies
    3
    Views
    71

    Re: problem with applet

    Are there any error messages in the browser's Java Console.


    Copy the html file and the class file(s) to a folder of your choice.
  20. Replies
    6
    Views
    98

    Re: Unexpected output java

    What are the steps your program is doing to solve the problem.
    For the digits to the left of the point it would do something like this:
    convert base 2 digits to int
    convert int to base 16 digits...
  21. Re: Help with a very beginner java program creation

    Have you made a list of the steps the code needs to do to solve the problem?
    You'll need that before trying to write any code.

    Also take a look at the tutorial about loops:
    The for Statement...
  22. Re: Help with a very beginner java program creation

    Looks like the program should use some loops.
    What have you tried?
  23. Replies
    24
    Views
    306

    Re: JAVA SQL Connection

    That post was the same as post#15. So we are now going in circles.
    My response is what was said in post#16

    If this is a netbeans setup problem, I'll move this thread to the Netbeans section.
  24. Replies
    24
    Views
    306

    Re: JAVA SQL Connection

    The java machine can not find the definition for the com.microsoft.sqlserver.jdbc.SQLServerDriver class. It's definition needs to be on the classpath.
    This has been discussed before.
  25. Replies
    2
    Views
    57

    Re: Paintwindow moving picture

    Can you make a small, complete program that compiles, executes and shows the problem?

    What package is the PaintWindow class in? I don't recognize it as part of the Java SE packages.


    Take a...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4