title: Java JScrollBar Design
body: <p>I want customize the JScrollBar Design. I use Mac to develop the app with eclipse. I already tried to <code>scrollPane.getVerticalScrollBar().setBackground(Color.BLACK);</code> but nothing happen.</p>
  
  <p>My code: </p>
  
  <pre><code>scrollPane = new JScrollPane(scriptView);
  scrollPane.setBorder(BorderFactory.createEmptyBorder());
  scrollPane.getVerticalScrollBar().setUnitIncrement(6);
  window.getContentPane().add(scrollPane);
  </code></pre>
  
  <p>The Object <code>scriptView</code> is from the class <code>JEditorPane</code>.</p>
  
  <p>How it should look:</p>
  
  <p><img src="https://i.stack.imgur.com/dBWnz.jpg" alt="sample"></p>
  
  <p>Thanks for every help.</p>