### JScrollPane

##### Client properties:

Property | Type | Notes
--- | --- | ---
`JComponent` `.sizeVariant` | `java.lang.String` | Values: "regular", "small"
`Quaqua.Component` `.visualMargin` | `java.awt.Insets` | See layout

####

#### General

The QuaquaScrollPaneUI ensures that scrollbars don't overlap with the grow-box of the window.

If your JScrollBar is filling the entire region of a JFrame, it is best to set its border to null. This way, your application will very much look like a native application.

The following code snippet was used to create the window shown above:

import javax.swing.*; public class ScrollPaneTest2 extends JFrame { public ScrollPaneTest2() { setTitle("Quaqua Scroll Pane Test 2"); setDefaultCloseOperation(EXIT_ON_CLOSE); JTextArea ta = new JTextArea(); ta.setLineWrap(true); ta.setWrapStyleWord(true); JScrollPane sp = new JScrollPane(); sp.setBorder(new EmptyBorder(0,0,0,0)); sp.setViewportView(ta); getContentPane().add(sp); pack(); } public static void main(String args[]) { try { UIManager.setLookAndFeel( "ch.randelshofer.quaqua.QuaquaLookAndFeel" ); } catch (Exception e) { // ... insert exception handling code here } new ScrollPaneTest2().show(); } }