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...
Type: Posts; User: allisbs
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...
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()
Yes I want the file to open in wordpad, or textedit(MAC) or the equivalent on Linux.
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.
...