Search:

Type: Posts; User: allisbs

Search: Search took 0.12 seconds.

  1. Re: How can I check to see if a file ending with a certain extension exists in the current working directory

    My program needs to check for any files ending .lic. If there is a file ending in ".lic" then run the user input. If a ".lic" does not exist then pop up a message.
    in my code the "user.dir" is not...
  2. Re: How can I check to see if a file ending with a certain extension exists in the current working directory

    It is not getting the current working directory. I need to look for a file ending in ".lic".
    When I try to get the value of License, this is what it says, "License = >"License" is not a known...
  3. How can I check to see if a file ending with a certain extension exists in the current working directory

    This question is different from "Find files in a folder using Java" that has already been asked because I do not know what the users current working directory will be. I need my program to look in...
  4. Replies
    3
    Views
    665

    Re: If statement not working

    Still, need help on this.
  5. Replies
    3
    Views
    665

    If statement not working

    I have an If statement and it seems that it is not functioning properly. The first part of the if statement is getting skipped over. I am checking to see if a ".lic" file exists and if it does then...
  6. Re: check to see if a file exists using the current directory

    I am a newb to Java programming. where do I find info on file class.
  7. check to see if a file exists using the current directory

    I have a program, that after the user puts in some information, they click a button to exectute the program. I want the code to check to see if a file exists before executing the program.
    I need my...
  8. Replies
    9
    Views
    953

    Re: GOing from VB to Java

    So the user selects a file and the file and path get put into the the text box called "txtInput". I want the user to be able to click a button that will open that file in a text editor. I will look...
  9. Replies
    9
    Views
    953

    Re: GOing from VB to Java

    So here is what I put.

    java.awt.Desktop.getDesktop().edit(txtInput.getText());

    NetBeans says, "Incompatible types: String cannot be converted to file. txtInput.getText()
  10. Replies
    9
    Views
    953

    Re: GOing from VB to Java

    Yes I want the file to open in wordpad, or textedit(MAC) or the equivalent on Linux.
  11. Replies
    9
    Views
    953

    GOing from VB to Java

    I have an app that was written in VB and I would like to create the same app in JAVA, so that it works on all platforms.
    I have a button that when clicked opens the specified file in a text box.
    ...
Results 1 to 11 of 11