From 4023a857577dbd9c619b5c04eb93a5e60fddb04b Mon Sep 17 00:00:00 2001 From: tcarver <tjc> Date: Fri, 11 Oct 2013 14:28:28 +0100 Subject: [PATCH] tidy --- .../genebuilder/GeneEditorPanel.java | 23 +++++-------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/uk/ac/sanger/artemis/components/genebuilder/GeneEditorPanel.java b/uk/ac/sanger/artemis/components/genebuilder/GeneEditorPanel.java index 9939010fb..4d32f4c6e 100644 --- a/uk/ac/sanger/artemis/components/genebuilder/GeneEditorPanel.java +++ b/uk/ac/sanger/artemis/components/genebuilder/GeneEditorPanel.java @@ -33,7 +33,6 @@ import javax.swing.BoxLayout; import javax.swing.JComponent; import javax.swing.JLabel; import javax.swing.JPanel; -import javax.swing.JScrollPane; import javax.swing.JSeparator; import uk.ac.sanger.artemis.components.QualifierTextArea; @@ -47,8 +46,6 @@ import uk.ac.sanger.artemis.components.genebuilder.ortholog.MatchPanel; */ public class GeneEditorPanel extends JPanel { - - /** */ private static final long serialVersionUID = 1L; protected static Color STEEL_BLUE = new Color(25, 25, 112); private static Color LIGHT_STEEL_BLUE = new Color(176, 196, 222); @@ -86,9 +83,7 @@ public class GeneEditorPanel extends JPanel setLayout( new BoxLayout(this, BoxLayout.PAGE_AXIS) ); setBackground(Color.WHITE); - //JScrollPane jspCore = new JScrollPane(qualifier_text_area); - //jspCore.setPreferredSize(new Dimension(jspCore.getPreferredSize().width, 100)); - + addDarkSeparator(this); propertiesButton = addOpenClosePanel("Properties", propertiesPanel, this, null); add(propertiesPanel); @@ -169,7 +164,7 @@ public class GeneEditorPanel extends JPanel separator.setPreferredSize( new Dimension(comp.getPreferredSize().width, 6)); - separator.setMaximumSize(new Dimension(1500,8)); + separator.setMaximumSize(new Dimension(2500,8)); return separator; } @@ -181,8 +176,7 @@ public class GeneEditorPanel extends JPanel */ public static void addLightSeparator(final JComponent comp) { - JSeparator separator = getSeparator(comp, true); - comp.add(separator); + comp.add(getSeparator(comp, true)); } /** @@ -191,8 +185,7 @@ public class GeneEditorPanel extends JPanel */ public static void addDarkSeparator(final JComponent comp) { - JSeparator separator = getSeparator(comp, false); - comp.add(separator); + comp.add(getSeparator(comp, false)); } /** @@ -215,9 +208,7 @@ public class GeneEditorPanel extends JPanel final JLabel nameLabel = new JLabel(name); nameLabel.setForeground(STEEL_BLUE); - Font font = nameLabel.getFont(); - font = font.deriveFont(Font.BOLD); - nameLabel.setFont(font); + nameLabel.setFont(nameLabel.getFont().deriveFont(Font.BOLD)); final OpenSectionButton openButton = new OpenSectionButton("-", panel); @@ -230,6 +221,4 @@ public class GeneEditorPanel extends JPanel container.add(bannerPanel); return openButton; } - - -} \ No newline at end of file +} -- GitLab