Search:

Type: Posts; User: NormR

Page 1 of 3 1 2 3

Search: Search took 0.10 seconds.

  1. Re: Imitating a file system in Java and absolutely stumped by NullPointerException

    Also posted at: https://coderanch.com/t/681236/java/Imitating-file-system-Java-absolutely#3195319
  2. Re: I'd like to do this but am totally new to working with a GUI

    All I can say is: you are going to have a hard time.

    If you want posters with attitude, try this forum: http://stackoverflow.com/questions/tagged/java

    Another one with lots of helpers:...
  3. Re: I'd like to do this but am totally new to working with a GUI

    It is very useful when trying to find something if you use the correct name. John Joe gave you the name of a java class that you could research.
    The name text box is not part of java.

    Perhaps...
  4. Re: Imitating a file system in Java and absolutely stumped by NullPointerException

    Look at line 222 and find the variable on that line that has a null value.
    Print all the variables on that line to see which one is null. Then backtrack in the code to find out why that variable...
  5. Re: Imitating a file system in Java and absolutely stumped by NullPointerException

    Please copy the full text of the error message and paste it here. It has important info about the error.

    The line number where the exception happened is shown in the error message. Look at that...
  6. Replies
    2
    Views
    870

    Re: Java land null point exception

    Please copy the full text of the error message and paste it here. It has important info about the error that is needed to fix it.

    Please wrap your code in code tags, not html tags.
  7. Replies
    2
    Views
    2,012

    Re: StdDraw keyboard controls uncontrollable

    That is often because the moves are made in a loop and the loop runs very quickly. If the loop is not using the JVM EDT then you could add a call to the Thread sleep method to add a delay between...
  8. Re: Need help figuring out what needs fixing please!

    Same problem. You need to get a definition for the missing class.
  9. Re: Need help figuring out what needs fixing please!

    To fix the cannot find symbol errors, you need to have the definitions for the missing classes on the classpath for the javac command.
    If you have a jar file with the classes' definitions you can...
  10. Re: Need help figuring out what needs fixing please!

    please post a link to the other site.

    Please post your updated code here wrapped with code tags:



    **YOUR CODE GOES HERE**


    to get highlighting and preserve formatting.
  11. Re: Need help figuring out what needs fixing please!

    Looks like the statement on line 103 is missing the first part of a for statement. Try adding: for(
    for(int i =....


    The compiler can not find a definition for the client class. Where is the...
  12. Re: Need help figuring out what needs fixing please!

    Can you copy the full text of the compiler's error message and paste it here?

    What you've posted looks like it is from trying to run a program with a compiler error.
  13. Re: Integrating .chm file in Java application....URGENT

    What OS command opens the file? Read that command's documentation to see if it has any options to change the way it works.
    Then pass those options to it in the commands array.
  14. Replies
    1
    Views
    2,319

    Re: Help with my code please Java war card game

    There are two ArrayLists in the warGamecards() method.
    When are any objects stored in them? The while statement requires that they have something in them.

    Note: It is usually a bad idea to...
  15. Replies
    22
    Views
    1,691

    Re: Problem loading TrueType Fonts

    Glad you figured it out. Computers are pretty stupid and will do exactly what you tell them without looking around to see if maybe the target is close by.
  16. Replies
    22
    Views
    1,691

    Re: Problem loading TrueType Fonts

    Was the TestCode23 class in the TestCode23 package
    and the TestCode23.class file in the TestCode23 folder in the jar file?
  17. Replies
    22
    Views
    1,691

    Re: Problem loading TrueType Fonts

    Ok, now experiment with putting the file to be read in different folders and changing the path in the getResource method until you see what the pattern is.
  18. Replies
    22
    Views
    1,691

    Re: Problem loading TrueType Fonts

    Try it without the package. My test was without a package.
  19. Replies
    22
    Views
    1,691

    Re: Problem loading TrueType Fonts

    What is the path to the TestCode23.class file in the jar file?

    What is printed when you execute the TestCode23 program outside of the jar file?
  20. Replies
    22
    Views
    1,691

    Re: Problem loading TrueType Fonts

    The path in the getResouce must point to a file.
    Move the file to the top level and use only the filename in the call to getResource.

    Here's what I got with a simple test:
    This line in main of...
  21. Replies
    22
    Views
    1,691

    Re: Problem loading TrueType Fonts

    Try copying the file to different folders until getResource finds it.
    Also change the path in getResource until it finds the file.
  22. Replies
    22
    Views
    1,691

    Re: Problem loading TrueType Fonts

    Do some experimenting to see what folder the program is looking in when it is in the jar file.
    Print out the value returned by calling getResource(<PATHHERE>). Copy the file to different locations...
  23. Replies
    22
    Views
    1,691

    Re: Problem loading TrueType Fonts

    The path used when the code is executed in the jar is wrong.
  24. Replies
    22
    Views
    1,691

    Re: Problem loading TrueType Fonts

    What is the path in the jar file to the font file? Make sure the program is using the correct path.
  25. Replies
    22
    Views
    1,691

    Re: Problem loading TrueType Fonts

    What happens if you use the myFont variable in the setFont method call instead of creating a new instance of Font?
Results 1 to 25 of 66
Page 1 of 3 1 2 3