Search:

Type: Posts; User: dalythe

Search: Search took 0.40 seconds.

  1. Re: Creating a new directory using new File().mkdir()

    Yes this was answered in my crosspost. I needed to use mkdirs() instead of mkdir() to actually create the missing directories. Thanks for the help.
  2. Re: Creating a new directory using new File().mkdir()

    It refers to the home directory. I did a JOptionPane.showMessageDialog(null, path) and it indeed show me the correct path. It just don't create the path. new File(path).mkdir() actually returns false...
  3. Re: Creating a new directory using new File().mkdir()

    What I did check is that the string that I supplied to the new File().mkdir() is indeed the directory I needed to create. I don't quite understand checking the return value of mkdir().
  4. Re: Creating a new directory using new File().mkdir()

    Well my destpath is made up of the user's home directory and the Test name.


    String dtpath = new JFileChooser().getFileSystemView().getDefaultDirectory().toString();
    String destpath = dtpath +...
  5. Creating a new directory using new File().mkdir()

    I am trying to simply create a directory, but my code just will not accomplish it. It doesn't give me any errors but it doesn't create the directory neither. I thought that new File(path).mkdir();...
  6. Re: Using Date() to get Start Time and Finish Time of a copyFiles method

    I tried this and it was acting as if I didn't import Date class.

    --- Update ---

    I imported java.text.* and java.util.* and I get a red exclamation mark stating that it cannot find Date()...
  7. Using Date() to get Start Time and Finish Time of a copyFiles method

    I have a single file copy that I want to record the start time and the finish time for. The code below indeed provide me with time, but the start and finish are the same. I know for a fact that it...
  8. Re: Trying to format an Array using specifiers to appear in TextArea

    I did. I mentioned that I gave it an empty set as a value. Before, I had just declared it with the rest of my instance variables. It still gave the same results, null.
  9. Re: Trying to format an Array using specifiers to appear in TextArea

    This is what printed:

    pData=
    Exception in thread "AWT-EventQueue-0" java.util.IllegalFormatConversionException: f != java.lang.String
    at...
  10. Re: Trying to format an Array using specifiers to appear in TextArea

    I deleted the line System.out.println(pData); that printed the "nu" value. I gave pData a empty set value initially, ran the code from post #9, and I got the following error:

    Exception in thread...
  11. Re: Trying to format an Array using specifiers to appear in TextArea

    nu printed out
  12. Re: Trying to format an Array using specifiers to appear in TextArea

    Obviously nothing. I think the compiler is having a problem with the format specifiers that I used on prtData. It is still saying nu.

    1914

    Now if I take the attempt to format out of the code I...
  13. Re: Trying to format an Array using specifiers to appear in TextArea

    The String variable pData is "supposed" to contain the formatted Strings. This is the variable I appended to my StringBuilder.



    prtData = printArray();
    pData = String.format("%8.2f%n", pData);...
  14. Re: Trying to format an Array using specifiers to appear in TextArea

    After inputting my values for the array, I hit my button and it produces this output in the TextArea:

    ***************************************************
    Raw Tutoring Earnings Data

    nu
    ...
  15. Re: Trying to format an Array using specifiers to appear in TextArea

    I'm not per say getting an error message but it is showing nu in the TextArea where the format contents supposed to appear. Here are the changes I tried :



    private void...
  16. Re: Trying to format an Array using specifiers to appear in TextArea

    Once I append the results of the loop to the variable, its like I can't format it. I tried using String.format() with prtData being my String that I am trying to format. prtData contains the contents...
  17. Trying to format an Array using specifiers to appear in TextArea

    I created a method to iterate through my array and collect all the values. I then appended the results to a String variable. When I append the variable to the TextArea, it shows all the values in one...
Results 1 to 17 of 17