Search:

Type: Posts; User: zincc

Search: Search took 0.25 seconds.

  1. Re: WatchService - small code for monitoring folders

    I've found the following comment (for the Thread.sleep line of code) that I had deleted previously. Can someone explain to me what it means please. My application freezes regardless of this line of...
  2. Re: WatchService - small code for monitoring folders

    I've changed the code now to the following and all the functionality that I wanted is in there and it works. The only problem I have with it is that it simply kind of freezes after a while (maybe an...
  3. Replies
    2
    Views
    622

    Re: Hello, "name" problem.

    I can't answer your question directly, but if i was writing that code I would simply use .length() to get the string's length and then calculate the frame from there. You may also want to take a look...
  4. Replies
    2
    Views
    1,097

    Re: Adding a frame/textarea to an application

    Hi copeg, thanks for your reply! I couldn't quite figure out how to use the code that you gave me but it did point me in a good direction and I got it the window logging to work in the end, after a...
  5. Replies
    2
    Views
    1,097

    Adding a frame/textarea to an application

    So, I figured out how to get my folder monitoring code working, but now I would like to make it output into a window, rather than the console. I have both codes working separately but don't know how...
  6. WatchService - small code for monitoring folders

    I'm very new to Java. I found and example of a folder watcher service that I wanted to use for a simple app but no matter what I do I cannot get it to work. As best as I can figure out is that I'm...
Results 1 to 6 of 6