DNA String Project

  • (2 Pages)
  • +
  • 1
  • 2

19 Replies - 1048 Views - Last Post: 24 September 2012 - 03:42 AM Rate Topic: -----

#16 pbl  Icon User is online

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8031
  • View blog
  • Posts: 31,185
  • Joined: 06-March 08

Re: DNA String Project

Posted 23 September 2012 - 07:41 PM

from
	public void actionPerformed(ActionEvent e) {
		String nSequences = dna.getText();
		int len = nSequences.length();
		if(len % 3 != 0)
		   return;

		protein.setText(ProteinFinder.find(nSequences) + "                   ");
	}	


to
	public void actionPerformed(ActionEvent e) {
		String nSequences = dna.getText();
		int len = nSequences.length();
		if(len != 0)                                  // <-----------------------
		      dna.setText(nSequences.toUpperCase());  // <-----------------------
		if(len % 3 != 0)
		   return;

		protein.setText(ProteinFinder.find(nSequences) + "                   ");
	}	


Was This Post Helpful? 0
  • +
  • -

#17 ric1989  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 96
  • Joined: 28-February 12

Re: DNA String Project

Posted 23 September 2012 - 08:07 PM

i wanted nAminoAcid in uppercase it is the same thing right.
Was This Post Helpful? 0
  • +
  • -

#18 pbl  Icon User is online

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8031
  • View blog
  • Posts: 31,185
  • Joined: 06-March 08

Re: DNA String Project

Posted 23 September 2012 - 08:10 PM

View Postric1989, on 23 September 2012 - 11:07 PM, said:

i wanted nAminoAcid in uppercase it is the same thing right.

Just define them as such in the FindProtein static variable ?????????
Was This Post Helpful? 1
  • +
  • -

#19 ric1989  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 96
  • Joined: 28-February 12

Re: DNA String Project

Posted 23 September 2012 - 08:43 PM

well thanks project is completed i guess. Wish i had u as a tutor in my school.
Was This Post Helpful? 0
  • +
  • -

#20 pbl  Icon User is online

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8031
  • View blog
  • Posts: 31,185
  • Joined: 06-March 08

Re: DNA String Project

Posted 24 September 2012 - 03:42 AM

Glad I could help
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2