Apache NetBeans Wiki Index

Note: These pages are being reviewed.

How do I add horizontal scrolling support in the OutlineView component?

The OutlineView component already contains a JScrollPane, but the component’s default behavior is to fit all the columns in the available space. If you have a large number of columns, say twenty or more, you may find that the horizontal space allocated to any one column is insufficient. In this case, you will likely want to disable table column resizing so that you can scroll left or right to see the data. This can be accomplished by adding one line of code:


Apache Migration Information

The content in this page was kindly donated by Oracle Corp. to the Apache Software Foundation.

This page was exported from http://wiki.netbeans.org/DevFaqOutlineViewHorizontalScrolling , that was last modified by NetBeans user Jtulach on 2010-07-24T19:39:19Z.

NOTE: This document was automatically converted to the AsciiDoc format on 2018-02-07, and needs to be reviewed.