package com.seaglasslookandfeel.demo;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollBar;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;

public class TestScrollBars {

    public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel("com.seaglasslookandfeel.SeaGlassLookAndFeel");
        } catch (Exception e) {
            e.printStackTrace();
        }

        SwingUtilities.invokeLater(new Runnable() {
            public void run() {

                JScrollBar scrollBar = new JScrollBar(JScrollBar.VERTICAL);
                scrollBar.setPreferredSize(new Dimension(15, 300));
                
                JPanel panel = new JPanel();
                panel.add(scrollBar, BorderLayout.CENTER);

                JFrame frame = new JFrame();
                frame.add(panel, BorderLayout.CENTER);
                frame.setSize(275, 125);
                frame.setLocationRelativeTo(null);
                frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                frame.setVisible(true);
            }
        });
    }

}

@@ -62,16 +62,39 @@
 Layout;%0A
+import java.awt.Color;%0A
 import j
@@ -193,19 +193,20 @@
 .JScroll
-Bar
+Pane
 ;%0Aimport
@@ -337,24 +337,48 @@
 g%5B%5D args) %7B%0A
+        if (true) %7B%0A    
         try 
@@ -379,16 +379,20 @@
   try %7B%0A
+    
         
@@ -476,16 +476,20 @@
         
+  
+  
 %7D catch 
@@ -516,16 +516,20 @@
         
+    
 e.printS
@@ -537,24 +537,38 @@
 ackTrace();%0A
+            %7D%0A
         %7D%0A%0A 
@@ -672,64 +672,33 @@
    J
-ScrollBar scrollBar = new JScrollBar(JScrollBar.VERTICAL
+Panel panel = new JPanel(
 );%0A 
@@ -712,25 +712,21 @@
         
-scrollBar
+panel
 .setPref
@@ -753,13 +753,14 @@
 ion(
-1
 5
+00
 , 
-3
+5
 00))
@@ -781,45 +781,89 @@
     
-%0A                JPanel p
+panel.setBackground(Color.WHITE);%0A%0A                JScrollPane scrollP
 ane
-l
  = new J
 Pane
@@ -862,73 +862,24 @@
 ew J
-Panel();%0A                panel.add(scrollBar, BorderLayout.CENTER
+ScrollPane(panel
 );%0A%0A
@@ -949,21 +949,26 @@
 ame.add(
-p
+scrollP
 ane
-l
 , Border

Use a scroll pane for the scroll bar test.