Search:

Type: Posts; User: pbrockway2

Page 1 of 20 1 2 3 4

Search: Search took 0.51 seconds.

  1. Replies
    6
    Views
    60

    Re: Removing redundancy from String

    I agree with angstrem. And, imho, some such "recipe" (algorithm) is the place to start rather than code.
  2. Thread: Gobal array

    by pbrockway2
    Replies
    3
    Views
    71

    Re: Gobal array

    You're welcome.
  3. Re: Using Date() to get Start Time and Finish Time of a copyFiles method

    You're welcome.
  4. Re: Using Date() to get Start Time and Finish Time of a copyFiles method

    dNow is never given a different value after it is initialised.

    You could do away with the variable altogether and say



    jLabel2.setText(ft.format(new Date()));
    // some code
    // and later......
  5. Replies
    8
    Views
    100

    Re: Event Handler For a JTextField

    I'm glad you've got it sorted out.

    There seem to be some other problems with that event handler that should come to light as you test it. (Make sure the answers you get are reasonable!)
  6. Replies
    8
    Views
    100

    Re: Event Handler For a JTextField

    You read the stack trace from the top down until you reach a line which mentions your code. This is a good place to begin looking for the source of the problem.

    In this case the problem is...
  7. Thread: Hi

    by pbrockway2
    Replies
    1
    Views
    44

    Re: Hi

    Hi Santosh, welcome to the forums!
  8. Thread: Gobal array

    by pbrockway2
    Replies
    3
    Views
    71

    Re: Gobal array

    You can declare a variable of any type (including an array) outside any method but initialise it inside a method. That way one method can be responsible for giving the variable a value, but other...
  9. Replies
    8
    Views
    100

    Re: Event Handler For a JTextField

    You have variables like distance declared twice and this is causing no end of problems.

    At the risk of repeating myself, having sensible (descriptive) variables stops the problem from ever...
  10. Replies
    4
    Views
    68

    Re: User input error help.

    As an aside if you're like me you'll make lots of typos as you learn a new technology. "The method whatever() is undefined etc" is common indication by the compiler of a typo.

    The API...
  11. Re: Java code, Try to put header in all text file in folder using textarea, please help me

    You're welcome.
  12. Re: Java code, Try to put header in all text file in folder using textarea, please help me

    It might be that the newline character is being written, but not being displayed properly by whatever program you are using to read the file later. The Windows program Notepad is like this and will...
  13. Replies
    8
    Views
    100

    Re: Event Handler For a JTextField

    That doesn't look right to me because MPG is a JLabel with the text "What is the Vehicles MPG?". And parsing that text as a float won't lead to anything good...

    ---

    A couple of observations -...
  14. Replies
    3
    Views
    81

    Re: two constructor creating problem

    It is the job of a constructor to make sure all of the instance fields are properly initialised. So, consider having a single constructor that is passed all of the values.
  15. Replies
    2
    Views
    57

    Re: Hi Java people

    Hi sparks, welcome to the forums!
  16. Replies
    2
    Views
    49

    Re: :) HELLO Everyone

    Hi Chirag Talreja, welcome to the forums!
  17. Re: HI Fellows, this is my first time in JPF!

    Hi JoaoDias51, welcome to the forums!
  18. Thread: Hi peeps

    by pbrockway2
    Replies
    2
    Views
    60

    Re: Hi peeps

    Hi ocdjg, welcome to the forums!
  19. Replies
    1
    Views
    95

    Re: Help Me with this program please?

    Is there a reason why you aren't using Swing? (JFrame, JButton, etc)

    Basically you should write an action handler that sets the button text. And add that handler to the button so that it does its...
  20. Re: Graphics in Jpanel are not showing! Help please ! T^T

    As a general rule: work one small step at a time.

    So step back from your cake application as it currently stands and write something with a single button that makes a single change to the GUI. ...
  21. Re: I cannot find the problem with this code.

    How do you know the conditions are not met? Print out the values of the interesting conditions before you start the if blocks. This will help with debugging.

    I agree with jps - without code...
  22. Replies
    2
    Views
    44

    Re: Hi! Im new here!

    Hi Toad, welcome to the forums!
  23. Replies
    7
    Views
    112

    Re: Shuffling a deck

    You're welcome.
  24. Replies
    7
    Views
    112

    Re: Shuffling a deck

    OK.

    You read these stack traces from the top down, until you reach a line of your code (which happens rather soon here!). It is saying that the problem is an ArrayIndexOutOfBoundsException. In...
  25. Replies
    7
    Views
    112

    Re: Shuffling a deck

    Sorry, I can't read the image.

    What is the stack trace? (the thing that says what the exception is, and then gives a list of lines of your code to go looking at)
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4