[Biojava-l] regarding code
indu pandey
er.indupandey at gmail.com
Sat Jul 17 10:41:03 UTC 2010
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
More information about the Biojava-l
mailing list