JAL-3383 JAL-3253-applet
[jalview.git] / src / jalview / jbgui / GAlignmentPanel.java
index bf4f645..3dd0205 100755 (executable)
@@ -31,6 +31,7 @@ import javax.swing.JScrollBar;
 import javax.swing.JScrollPane;
 import javax.swing.border.Border;
 
+@SuppressWarnings("serial")
 public class GAlignmentPanel extends JPanel
 {
          protected JScrollBar vscroll = new JScrollBar();
@@ -53,7 +54,7 @@ public class GAlignmentPanel extends JPanel
 
          BorderLayout borderLayout11 = new BorderLayout();
 
-         public JScrollPane annotationScroller = new JScrollPane();
+  public JScrollPane annotationScroller = new JScrollPane();
 
          Border border1;
 
@@ -62,6 +63,9 @@ public class GAlignmentPanel extends JPanel
          
          static JPanel newJPanel() {  // BH 2019
                  JPanel p = new JPanel();
+                 // leaving this in, as it prevents 
+                 // the checkerboard business, despite how
+                 // funky that looks. Remove if you want to.
                  p.setBackground(Color.white);
                        return p;
          }
@@ -90,7 +94,7 @@ public class GAlignmentPanel extends JPanel
 
   private void jbInit() throws Exception
   {
-         annotationScroller.setBackground(Color.white);  // BH 2019
+       //  annotationScroller.setBackground(Color.white);  // BH 2019
          
     border1 = BorderFactory.createLineBorder(Color.gray, 1);
     idPanelHolder.setBorder(null);
@@ -119,6 +123,7 @@ public class GAlignmentPanel extends JPanel
     hscrollFillerPanel.setPreferredSize(new Dimension(70, 10));
     hscrollHolder.setBackground(Color.white);
     annotationScroller.setBorder(null);
+    annotationScroller.setBackground(Color.BLUE);
     annotationScroller.setPreferredSize(new Dimension(10, 80));
     this.setPreferredSize(new Dimension(220, 166));