Search:

Type: Posts; User: allisbs

Search: Search took 0.35 seconds.

  1. Make a jtextfield invisible on start of the GUI application

    I have a jtextfield that I want to make invisible on start. I do not see an option for that in the design side under properties. I am a VB programmer and in VB there is an option under properties...
  2. Re: Problem with using a button to run a executable with arguments.

    So I got the errors worked out, but now how do I take a string with the command in it and run it.
    so the string is
    String run = wd + exec + in + rst + out

    I want to execute "run"
  3. Problem with using a button to run a executable with arguments.

    I am having a problem with the section of my code where a button is supposed to run a executable with some arguments. I have marked the section with comments.


    package my.issrs;

    /**
    *
    *...
  4. Re: How to run a program from a button

    Look in the post above for the error message
  5. Re: How to run a program from a button

    private void btnChooseIntdtaActionPerformed(java.awt.event.ActionEvent evt) {
    jfcIntdta.showOpenDialog(null);
    String indta =...
  6. Re: How to run a program from a button

    Cannot find symbol
    symbol: method getText()
    Location: Class issrsUI

    Local variable hides a field
    I am trying to tell it to grab the text from a jtextField

    Next error
    Variable declaration...
  7. Re: How to run a program from a button

    Ok so I got it setup to capture and determine what OS. Now why won't the button execute the command.


    private void btnRunRelapActionPerformed(java.awt.event.ActionEvent evt) { ...
  8. Re: How to run a program from a button

    Ok so I got it setup to capture and determine what OS. Now why won't the button execute the command.

    private void btnRunRelapActionPerformed(java.awt.event.ActionEvent evt) { ...
  9. Re: How to run a program from a button

    So Props has a variable of 21 with type HashTable$entry with a key|String|os.name and Value|String|Mac OS X
    So now how do I use that to check and see what OS I am on and run a certain command based...
  10. Re: How to run a program from a button

    Ok I ran through the debugger and the props ends up equalling "size=57". How does that help me determine the OS that is running?
  11. Re: How to run a program from a button

    This is the full text of the error: props = >"props" is not a known variable in the current context.<
    3315
  12. Re: How to run a program from a button

    private void btnRunRelapActionPerformed(java.awt.event.ActionEvent evt) {
    Properties props = System.getProperties(); //determine what OS is...
  13. Replies
    3
    Views
    205

    [SOLVED] Re: Delete a Private Void section

    Nope that does not work. I am on a MAC. I have tried fn+delete, control+delete, option+delete, and command+delete
  14. Replies
    3
    Views
    205

    [SOLVED] Delete a Private Void section

    How do you delete a private Void section, if it is not being used?
    3313

    I am using Netbeans and if I highlight the section that I want to delete, it won't let me.
  15. Replies
    4
    Views
    124

    Re: Surround text in a jTextFiled with quotes

    Still not sure how to check for white space in a file path and if found surround the path with quotes
  16. Re: How to run a program from a button

    So when I put in Properties props = System.getProperties(); I get an error
    3312

    I did add an Import for Java.utilities and that seemed to get rid of the error, but now when I run the debug I get...
  17. Re: How to run a program from a button

    Ok, but how do I format the execution line to include the executable name and the command line variables? Also how do you determine what OS the app is running on?
  18. Re: How to run a program from a button

    Yeah how do I do this in Java?
  19. How to run a program from a button

    I am new to JAVA. I need to execute a program, based on the OS. If I am on Mac, the program is a .x and if It is on Windows the program is .exe.
    The program also requires a line of commands...
  20. Replies
    4
    Views
    124

    Surround text in a jTextFiled with quotes

    After opening a file dialog box and choosing a file and the path to that file is placed ina jTextField, How can I surround that text with quotes, if that path contains spaces?

    This is how I did it...
  21. change the file extension on a path name in a jTextField

    I have a GUI that has three jTextFiled's. The first on gets filled in with a file that I choose and shows the path to that file with the file name
    i.e. - c:\rs34bil.exe\run\testrun.i
    I want to...
  22. Replies
    9
    Views
    105

    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...
  23. Replies
    9
    Views
    105

    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()
  24. Replies
    9
    Views
    105

    Re: GOing from VB to Java

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

    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 25 of 25