Simon Cookridge wrote:I am trying to open a file from within a GUI and get the content (a Description String & simple DNA bases e.g. ATG) from this file to display within an input area of the GUI. I want to do this by passing the filepath to a makeSequence method. I have the code below which enables me to apparently open the file using the JFileChooser and display the file path in the command window showing this is done. However I am unable to get the content from the file either in the command window or in my Input areas in the GUI. Any pointers would be much appreciated.
Simon Cookridge wrote:Thanks! That makes sense. I have made changes:
However, I still get various 'cannot find symbol' errors, as below:
Simon Cookridge wrote:I want the content of the file to return but I'm not sure what to call this. I get 6 errors with return myTextFile; (as below)
The ATG character set is the content in my file.
Don't get me started about those stupid light bulbs. |