Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JavaTM 2 Platform Standard Ed. 5.0
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
javax.swing.JViewport

Packages that use JViewport
javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.

Uses of JViewport in javax.swing

Fields in javax.swing declared as JViewport
`protected JViewport` | `ScrollPaneLayout.colHead` The column header child.
`protected JViewport` | `JScrollPane.columnHeader` The column header child.
`protected JViewport` | `ScrollPaneLayout.rowHead` The row header child.
`protected JViewport` | `JScrollPane.rowHeader` The row header child.
`protected JViewport` | `ScrollPaneLayout.viewport` The scrollpane's viewport child.
`protected JViewport` | `JScrollPane.viewport` The scrollpane's viewport child.
`protected JViewport` | `JScrollPane.AccessibleJScrollPane.viewPort`

Methods in javax.swing that return JViewport
`protected JViewport` | `JScrollPane.createViewport()` Returns a new `JViewport` by default.
`JViewport` | `ScrollPaneLayout.getColumnHeader()` Returns the `JViewport` object that is the column header.
`JViewport` | `JScrollPane.getColumnHeader()` Returns the column header.
`JViewport` | `ScrollPaneLayout.getRowHeader()` Returns the `JViewport` object that is the row header.
`JViewport` | `JScrollPane.getRowHeader()` Returns the row header.
`JViewport` | `ScrollPaneLayout.getViewport()` Returns the `JViewport` object that displays the scrollable contents.
`JViewport` | `JScrollPane.getViewport()` Returns the current `JViewport`.

Methods in javax.swing with parameters of type JViewport
`void` | `JScrollPane.setColumnHeader(JViewport columnHeader)` Removes the old columnHeader, if it exists.
`void` | `JScrollPane.setRowHeader(JViewport rowHeader)` Removes the old rowHeader, if it exists.
`void` | `JScrollPane.setViewport(JViewport viewport)` Removes the old viewport (if there is one); forces the viewPosition of the new viewport to be in the +x,+y quadrant; syncs up the row and column headers (if there are any) with the new viewport; and finally syncs the scrollbars and headers with the new viewport.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JavaTM 2 Platform Standard Ed. 5.0
PREV NEXT | FRAMES NO FRAMES

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.