Results 1 to 8 of 8
  1. #1
    solris is offline Member
    Join Date
    Jun 2009
    Posts
    7
    Rep Power
    0

    Default Issure with folder (directory)

    Hi all,

    Need help. I wrote a code that creates a folder on my desktop. How would i go preventing that folder from opening when doubledclicked on by a mouse?

  2. #2
    Singing Boyo is offline Senior Member
    Join Date
    Mar 2009
    Posts
    552
    Rep Power
    6

    Default

    You can't.
    If the above doesn't make sense to you, ignore it, but remember it - might be useful!
    And if you just randomly taught yourself to program, well... you're just like me!

  3. #3
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    742
    Rep Power
    6

    Default

    becuse limitation of java
    USE CODE TAGS--> [CODE]...[/CODE]
    Get NotePad++ (free)

  4. #4
    solris is offline Member
    Join Date
    Jun 2009
    Posts
    7
    Rep Power
    0

    Default

    So, there are certain programs you cannot build using java?

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    To the original poster: I already answered you in a similar thread over 6 hours ago, and yet you chose to ignore it and repost a similar question. Why?

  6. #6
    solris is offline Member
    Join Date
    Jun 2009
    Posts
    7
    Rep Power
    0

    Default

    Sorry, im not here to insault your knowledge. But yesturday i posted a question on this forum, along with several other forums, and everyone gave me diffrent answers. I thought if i rephrased my question, i would get the answer im looking for.

    Im just cant belive that all this time i've spent trying to learn java that it has limitations. Not only that, finding this out, looks like the plan i wanted to create is not going to happen.

    again, im sorry if offended you, totally not my intention.

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by solris View Post
    Sorry, im not here to insault your knowledge. But yesturday i posted a question on this forum, along with several other forums, and everyone gave me diffrent answers. I thought if i rephrased my question, i would get the answer im looking for.

    Im just cant belive that all this time i've spent trying to learn java that it has limitations. Not only that, finding this out, looks like the plan i wanted to create is not going to happen.

    again, im sorry if offended you, totally not my intention.
    Posting your question here and there not make any sence at all my friend. Actually once you do that what happen is, other members are discourage to answer your question. It become serious when cross-posting.

    As you said, different people have different opinions on the same question. I think it's because of there own experience in different streams. So the best thing you have to so is, just do a simple R&D on each comment and see what's the best for you. That's the way I'm following each and every time.

    I think that's what Fubarable want to explain in his last post. :)

  8. #8
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    yesturday i posted a question on this forum, along with several other forums, and everyone gave me diffrent answers. I thought if i rephrased my question, i would get the answer im looking for.
    This strikes me as the wrong attitude to have towards learning about programming languages and technologies. Wrong in the sense of ineffective.

    "How do I make a chocolate cake?" is a reasonable question to ask on a cooking forum. But the answers you will get will all be recipes. Some tasty, some not and one might even be the recipe you "were looking for" in the sense of meeting all the criteria you might have for your chocolate cake.

    The thing is that you can receive any number of recipes and yet not learn a thing about baking. Recipes are just that, recipes. They don't - and don't intend to - address questions of principle, or understanding. And it is understanding (what Java classes do what, and how they fit together) that you need in order to create your own novel solutions to problems.

    -----

    Along with File's list() methods I referred you to in your "opening a folder" thread there are also setReadable() methods. I've never used them (and have no idea whether displaying contents of a folder counts as "reading") but you might find them useful. Or might be able to verify that they're no good.

    If you think they might do what you want and get stuck, post code.
    Last edited by pbrockway2; 06-30-2009 at 05:06 AM.

Similar Threads

  1. opening directory (folder) to reveal contents.
    By solris in forum New To Java
    Replies: 6
    Last Post: 06-28-2009, 06:40 PM
  2. encrypt a folder
    By subramanya2teja in forum Advanced Java
    Replies: 5
    Last Post: 03-20-2009, 12:27 AM
  3. want to run my code from any folder ?
    By Shyam Singh in forum New To Java
    Replies: 1
    Last Post: 08-12-2008, 01:31 PM
  4. folder cloning
    By jad in forum Advanced Java
    Replies: 1
    Last Post: 07-01-2008, 12:28 AM
  5. add password to folder
    By ismailsaleh in forum AWT / Swing
    Replies: 1
    Last Post: 01-08-2008, 05:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •