Search:

Type: Posts; User: John

Page 1 of 2 1 2

Search: Search took 0.46 seconds.

  1. [SOLVED] Re: embedding xml tags at start and end of file

    Hey thanks for the reply JavaPF

    The solution worked great!=D> Only had a chance to get on and have a look at it today so sorry for the late reply.

    Basically in my program i just added the...
  2. [SOLVED] Java code to embedding xml tags at start and end of file

    Good afternoon all!

    I've got a question again involving horrible xml!

    I'm just curious does anyone know how i could write some code that places an open xml tag at the start of a file and a...
  3. Replies
    11
    Views
    1,336

    [SOLVED] Re: linking two different classes

    Ahh right got you now apologies, it works now.

    For some reason i had it working differently in my head lol

    Thanks mate

    John
  4. Replies
    11
    Views
    1,336

    [SOLVED] Re: linking two different classes

    Yeah for my save and open commands i used JFileChooser.

    I was thinking i might have to do something similar in order to call the file using the clean command.

    I'll have a fiddle with it
    ...
  5. Replies
    11
    Views
    1,336

    [SOLVED] Re: linking two different classes

    Hey javaPF thats awesome.

    To be honest i was trying to replace the main method with a consrtuctor but was coming up with all sorts of errors! Think i prefer it the way you have within one class.
    ...
  6. Replies
    11
    Views
    1,336

    [SOLVED] Re: linking two different classes

    Hey just wondering do you think it would be easier replacing the main method with a constructor or doing it all within the one class instead of having seperate classes?

    Thanks

    John
  7. Replies
    11
    Views
    1,336

    [SOLVED] How to link two different class?

    Hey all

    Basically i've got a question about how to put two classes together if that makes any sense:o

    The code below is for a GUI that uses a drop down menu.
    The menu allows the user to open a...
  8. [SOLVED] Re: Removing whitespace from text file

    Hey leandro thanks for the code.

    In my code i replaced the following code:

    p = Pattern.compile("\\s+");

    with the regular expression you provided above:

    p =...
  9. [SOLVED] Enhancement in program of removing whitespace from text file

    Right i'm back again to pickle your brains (which is normally JavaPF lol ;))

    Basically i've got some code below which removes all the whitespace from a text file.

    Originally it read through the...
  10. [SOLVED] Re: OutOfMemoryError: Java heap space

    Wahoo it worked!!!!=D>

    I think i must have been navigating to the wrong directory when i was trying to execute it! I'm a complete idiot!

    Thanks for that!

    Right basically i've got my program...
  11. [SOLVED] Re: OutOfMemoryError: Java heap space

    Emm no i use JCreater.

    Think this is another problem that i may have to deal with later amongst others lol.

    I mean it still saves files of a smaller size, but the sizes of .wmdb can vary.

    I...
  12. [SOLVED] Re: OutOfMemoryError: Java heap space

    When i try the command: java -Xms32m -Xmx128m it comes upwith the following:


    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile...
  13. [SOLVED] Re: OutOfMemoryError: Java heap space

    I've got 1GB of RAM and the CPU usage seems to vary between 30 and 60% when the program is running :(|)
  14. [SOLVED] Re: OutOfMemoryError: Java heap space

    Hey i've posted my code below

    Do you think there could be a problem in my coding that may be causing this? :(|)



    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import...
  15. [SOLVED] Re: OutOfMemoryError: Java heap space

    Hey cheers for the reply

    I've tried to change it in the control panel but it's at its maximum and it doesn't seem to work either when i try to do it via the command prompt.

    The program still...
  16. [SOLVED] Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space

    Hi i'm creating a program that opens a file and then sends the output to the GUI. If the user wishes they can then save a copy of the output to another file.

    My program seems to open files without...
  17. Re: Parsing xml problem

    Hey thanks for taking time to look at it. I'm still working on it, but i've got another problem!

    I'll post it in a new thread though
  18. Re: Parsing xml problem

    To be honest the xml for each piece of media appears quite randomely. Generally the xml tags for each piece of media are similar however some of the media contains xml that others don't. The file i...
  19. Re: Parsing xml problem

    Hey thanks for taking time to look at the file, it's much appreciated.

    I'm just curious do you think using regular expressions to parse the xml would work?

    John
  20. Printing xml to the console from .wmdb without printing junks

    Hi guys

    Further to a previous post that i made i've been trying to print some xml from a .wmdb (windows media database) file. The file itself basically stores metadata about media that has been...
  21. Replies
    14
    Views
    5,242

    [SOLVED] Re: Parsing ID3 tags

    Cool i will check that out

    Thanks again for your help

    John
  22. Replies
    14
    Views
    5,242

    [SOLVED] Re: Parsing ID3 tags

    Yeah it did thanks. It printed the artist and track title which was all the file contained.

    On the subject i was also trying to print the content of a .wmdb (windows media database) file. This is...
  23. Replies
    14
    Views
    5,242

    [SOLVED] Re: Parsing ID3 tags

    Ahh right i see, got you now

    It worked, thanks
  24. Replies
    14
    Views
    5,242

    [SOLVED] Re: Parsing ID3 tags

    Hey JavaPF

    I appear to be getting the following error whenever i try to run the program:
    Error ? java.lang.NullPointerException
    Basically i've copied the mp3 into the directory were the program...
  25. Replies
    14
    Views
    5,242

    [SOLVED] Re: Parsing ID3 tags

    Thanks leandro,

    I will be sure to check that out as well.

    I'm open to all solutions! lol

    Thanks again
Results 1 to 25 of 28
Page 1 of 2 1 2