// note vertical comes first
new JScrollPane ( component,
                  VERTICAL_SCROLLBAR_AS_NEEDED,
                  HORIZONAL_SCROLLBAR_AS_NEEDED );