[Biojava-l] regarding code

Richard Holland holland at eaglegenomics.com
Sat Jul 17 14:12:57 UTC 2010


It would be helpful if you could paste the full stack trace of the error message you are getting. Without that, it is impossible to help!

Richard.

On 17 Jul 2010, at 11:41, indu pandey wrote:

> hi everyone
> i am tryin to run this code from my application through jFrame.I want to
> pass this accession number through textarea for which i am usin g string
> data type as:
> 
> private void jButtonActionPerformed(java.awt.evet.ActionEvent evt)
> {
> string input=jTextArea1.getText();
> String out= readg(input);
> jTextArea2.SetText(out);
> }
> public String readg( String in)
> {
> RichSequence rs = *null*;
> String Seq="";
> 
>      GenbankRichSequenceDB grsdb = *new* GenbankRichSequenceDB();
> 
>      *try*{
> 
>        *// Demonstration of use with GenBank accession number*
> 
>        rs = grsdb.getRichSequence(in);
> 
>        SymbolList sl = rs.getInternalSymbolList();
> 
>        Seq=sl.seqString();
>    }
> 
>      *catch*(BioException be){
> 
>        be.printStackTrace();
> 
>        System <http://www.google.com/search?hl=en&q=allinurl%3Asystem+java.sun.com&btnI=I%27m%20Feeling%20Lucky>.exit(-1);
> 
>      }
> return (Seq);
> 
>   }
> 
> ny one tell me why this code is not working.
> thanx
> indu
> _______________________________________________
> Biojava-l mailing list  -  Biojava-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biojava-l

--
Richard Holland, BSc MBCS
Operations and Delivery Director, Eagle Genomics Ltd
T: +44 (0)1223 654481 ext 3 | E: holland at eaglegenomics.com
http://www.eaglegenomics.com/





More information about the Biojava-l mailing list