Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: Is it possible...

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Is it possible...

    Is it possible to make a program that watches folders, and anytime sometime clicks and attempts to open a particular folder a password window comes up? I'm certain the password window could be made, but the ability to bring it up when a folder is clicked is what I am unsure of. Of course, the folder should not open up unless the right password is entered. Is this possible in Java?
    ~The only impossible thing is impossibility itself~

  2. #2
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Is it possible...

    Well, your thinking is not that bad. But Watching a Directory for Changes (The Java™ Tutorials > Essential Classes > Basic I/O) might help you.
    Welcome to Java Programming Forums. Don't forget to read the rules.

  3. The Following 3 Users Say Thank You to Mr.777 For This Useful Post:

    chronoz13 (January 27th, 2012), ShadowElite (January 27th, 2012), Tjstretch (January 27th, 2012)

  4. #3
    Junior Member
    Join Date
    Jan 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Is it possible...

    I had actually skimmed over it, but only saw events for when a file was changed in various ways. Now that I look at it more closely though, it might actually be helpful. Thanks, for both the reply and the welcome. ^^
    ~The only impossible thing is impossibility itself~

  5. #4
    Junior Member
    Join Date
    Jan 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Is it possible...

    Well I played around with it a bit but it doesn't seem like its capable of performing the needed functions. As thought, it only gives alerts when a person modifies whats in the folder after they access it. Are there any other possibilities within Java, or would I have to use a different language?

    Oh and I'm not sure if double posting is allowed. I read over the rules but didn't see anything on it. If I am wrong, please tell me. Thanks.
    ~The only impossible thing is impossibility itself~

  6. #5
    Moderators helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Is it possible...

    Is there some reason that the system's built-in password protection doesn't work? Pure Java can't intercept a file change before it happens, it can only tell you it has happened after-the-fact.

  7. #6
    Junior Member
    Join Date
    Jan 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Is it possible...

    I do not think that the system has a built in feature capable of it, and if Java cannot do such then what can? The reason why I'm trying is because basically I'm the type of person who gets an idea and then makes it into a reality. If I don't know how, or if its above my abilities, I try to learn more about what I'm trying and the different ways it can be accomplished. This particular idea though is more advanced so to say, and so far its the only idea where I've had to ask other people. I do greatly appreciate the assistance.
    ~The only impossible thing is impossibility itself~

  8. #7
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: Is it possible...

    Quote Originally Posted by ShadowElite View Post
    I do not think that the system has a built in feature capable of it, and if Java cannot do such then what can? The reason why I'm trying is because basically I'm the type of person who gets an idea and then makes it into a reality. If I don't know how, or if its above my abilities, I try to learn more about what I'm trying and the different ways it can be accomplished. This particular idea though is more advanced so to say, and so far its the only idea where I've had to ask other people. I do greatly appreciate the assistance.
    It's good to have ideas and try to turn them in reality but to do this, you must have a knowledge and clear understanding of what you want to do and how it will really happen. It's not the idea that i just click and it demands for the password. There are many other tools that do the same so it's actually needed why you want to do this? And also, i think you must look for .Net to accomplish this task as Java already said can not intercept file change before it occurs.