Uses of Class
javax.swing.JViewport
Package
Description
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
Modifier and TypeFieldDescriptionprotected 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
JScrollPane.viewport
The scrollpane's viewport child.protected JViewport
ScrollPaneLayout.viewport
The scrollpane's viewport child.protected JViewport
JScrollPane.AccessibleJScrollPane.viewPort
thisJScrollPane
's currentJViewport
Modifier and TypeMethodDescriptionprotected JViewport
JScrollPane.createViewport()
Returns a newJViewport
by default.JScrollPane.getColumnHeader()
Returns the column header.ScrollPaneLayout.getColumnHeader()
Returns theJViewport
object that is the column header.JScrollPane.getRowHeader()
Returns the row header.ScrollPaneLayout.getRowHeader()
Returns theJViewport
object that is the row header.JScrollPane.getViewport()
Returns the currentJViewport
.ScrollPaneLayout.getViewport()
Returns theJViewport
object that displays the scrollable contents.Modifier and TypeMethodDescriptionstatic Component
SwingUtilities.getUnwrappedView
(JViewport viewport) Returns the firstJViewport
's descendant which is not an instance ofJLayer
.void
JScrollPane.setColumnHeader
(JViewport columnHeader) Removes the old columnHeader, if it exists; if the new columnHeader isn'tnull
, syncs the x coordinate of its viewPosition with the viewport (if there is one) and then adds it to the scroll pane.void
JScrollPane.setRowHeader
(JViewport rowHeader) Removes the old rowHeader, if it exists; if the new rowHeader isn'tnull
, syncs the y coordinate of its viewPosition with the viewport (if there is one) and then adds it to the scroll pane.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.