regarding code

indu pandey <[email protected]>
Newsgroups gmane.comp.java.bio.general
Message-ID <[email protected]>
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  -  [email protected]
http://lists.open-bio.org/mailman/listinfo/biojava-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.