Search:

Type: Posts; User: Norm

Page 1 of 20 1 2 3 4

Search: Search took 0.76 seconds.

  1. Replies
    2
    Views
    38

    Re: How to access the other JButton elements

    Are you talking about code in a listener for the button?
    What problem are you having? If you are getting compiler errors, copy the full text and paste it here.
  2. Re: whats wrong with the if else statement?i cant run my java. Please solve my problem.

    Please edit your post and fix the formatting of the code. Nested statements should be indented.
  3. Thread: help for image

    by Norm
    Replies
    1
    Views
    48

    [SOLVED] Re: help for image

    Can you explain why there is that restriction?
    What Graphics class methods can the project use?
  4. Thread: Tic Tac Toe

    by Norm
    Replies
    9
    Views
    90

    Re: Tic Tac Toe

    Did you look at the API doc for the button class? Does it have a method to get the String that a button is showing?
    You've used the button class's setText() method. Is there a get method that does...
  5. Thread: Tic Tac Toe

    by Norm
    Replies
    9
    Views
    90

    Re: Tic Tac Toe

    What are you trying to do with the contents of the button?
    Change its value?
    Get its current value?

    To call a method of a class, the method name needs to be followed by ()s. Look at post#1...
  6. Thread: Tic Tac Toe

    by Norm
    Replies
    9
    Views
    90

    Re: Tic Tac Toe

    Did that code compile?
    Copy the full text of any error messages and paste it here if you need help with them.

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

    YOUR CODE GOES...
  7. Replies
    10
    Views
    115

    Re: creat backspace button in my keyboard ((GUI))

    The names of the buttons should be changed to describe what they are used for.
    For example: button1 should be button_a and the same for all the other buttons.

    Look at the methods in the String...
  8. Replies
    10
    Views
    115

    Re: creat backspace button in my keyboard ((GUI))

    Look at the String class. It has methods for creating a new String with different contents.

    NOTE: The names of the buttons show reflect what the button is used for.
    For example: the names:...
  9. Replies
    3
    Views
    94

    Re: Library Booking system

    An ArrayList could be a better place to store the books.

    Note: The code has a hardcoded value: 5 with no description.
    If that value has a meaning like the max number of books allowed, then the...
  10. Replies
    5
    Views
    68

    Re: Creating a equalsIgnoreCase method

    If there are no restrictions, can you use the existing method in the String class?
  11. Re: Need help asap Financial Application: Compare Loans and Various Interest Rates

    What else can you say to describe the program's current output?
    How does the output on one line differ from the output on the next line?

    Inside the loop, How are the printed amounts related to...
  12. Replies
    5
    Views
    68

    Re: Creating a equalsIgnoreCase method

    What are the restrictions on what Java SE methods can be used?
  13. Thread: Tic Tac Toe

    by Norm
    Replies
    9
    Views
    90

    Re: Tic Tac Toe

    How many different ways can there be 3 in a row? The code needs to look at all of them and see if a player has 3 in a row. The tests could be done with some if statements.
  14. Thread: Tic Tac Toe

    by Norm
    Replies
    9
    Views
    90

    Re: Tic Tac Toe

    Are you asking how to check if there are 3 in a row?

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

    YOUR CODE GOES HERE

    to get highlighting and preserve formatting.
  15. Replies
    10
    Views
    115

    Re: creat backspace button in my keyboard ((GUI))

    If the text is in a textfield, the listener could get the contents, strip off the last character and set the contents again with the shortened String.
  16. Re: Need help asap Financial Application: Compare Loans and Various Interest Rates

    Can you explain what is wrong with the output?
  17. Replies
    3
    Views
    94

    Re: Library Booking system

    Use a reference to the class that has the method to call the method, not the name of the class. If the code is in the class that has the method, no reference needs to be coded. (the this keyword is...
  18. Re: Need help asap Financial Application: Compare Loans and Various Interest Rates

    Can you explain what is wrong with the output and show what it should be?
  19. Re: GUYS HELP ME TO TURN MY PROGRAM JFRAME INTO JAPPLET PLEASE! HERE'S MY CODE!

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

    YOUR CODE GOES HERE

    to get highlighting and preserve formatting.
  20. Thread: Algorithm

    by Norm
    Replies
    13
    Views
    206

    Re: Algorithm

    That suggestion was only for debugging.
    Take one of the bad output values. Work through the computations on paper for that value.
    Then Add some print stayements to the code and execute the...
  21. Thread: Algorithm

    by Norm
    Replies
    13
    Views
    206

    Re: Algorithm

    How are you debugging the code to see why it is not generating the correct results?

    One way is to use print statements to print out the values of variables as their values are changed and used....
  22. Thread: Algorithm

    by Norm
    Replies
    13
    Views
    206

    Re: Algorithm

    I don't see any print statements in the code in post#8. Where is that output created?

    Please wrap the code in highlight tags, not quote tags.
  23. Thread: Algorithm

    by Norm
    Replies
    13
    Views
    206

    Re: Algorithm

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

    YOUR CODE GOES HERE

    to get highlighting and preserve formatting.


    Please post the program's current output so it can be...
  24. Replies
    6
    Views
    93

    Re: Lol why isn't my code working?

    Note: a is not a good variable name. Variable names should describe what data the variable holds.
  25. Replies
    7
    Views
    128

    Re: Help with if and else problem

    A way to remember what choices the user has made so they can be summed.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4