Skip to content
Snippets Groups Projects
Commit 2a2fa992 authored by tjc's avatar tjc
Browse files

use revalidate

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@2448 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 0d8da671
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/FeatureList.java,v 1.15 2005-05-05 10:57:57 tjc Exp $
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/FeatureList.java,v 1.16 2005-05-06 08:47:47 tjc Exp $
*/
package uk.ac.sanger.artemis.components;
......@@ -56,7 +56,7 @@ import javax.swing.JComponent;
* Features.
*
* @author Kim Rutherford
* @version $Id: FeatureList.java,v 1.15 2005-05-05 10:57:57 tjc Exp $
* @version $Id: FeatureList.java,v 1.16 2005-05-06 08:47:47 tjc Exp $
*
**/
......@@ -301,7 +301,8 @@ public class FeatureList extends EntryGroupPanel
final int hgt = getEntryGroup().getAllFeaturesCount() *
getLineHeight();
setPreferredSize(new Dimension(getSize().width*4,hgt));
getViewport().setView(this);
revalidate();
repaint();
// switch(event.getType())
// {
......@@ -892,12 +893,11 @@ public class FeatureList extends EntryGroupPanel
number_format.format(codon_usage_alg.getFeatureScore(feature)) + " ";
}
return
codon_usage_score_string +
padRightWithSpaces(cor1_2_score_string, 5) + " " +
padRightWithSpaces(c3_score_string, 5) + " " +
padRightWithSpaces(g1_score_string, 5) + " " +
padRightWithSpaces(g3_score_string, 5);
return codon_usage_score_string +
padRightWithSpaces(cor1_2_score_string, 5) + " " +
padRightWithSpaces(c3_score_string, 5) + " " +
padRightWithSpaces(g1_score_string, 5) + " " +
padRightWithSpaces(g3_score_string, 5);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment