Uses of Class
javax.swing.JViewport
-
Packages that use JViewport Package Description 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 Modifier and Type Field Description protected JViewportScrollPaneLayout. colHeadThe column header child.protected JViewportJScrollPane. columnHeaderThe column header child.protected JViewportScrollPaneLayout. rowHeadThe row header child.protected JViewportJScrollPane. rowHeaderThe row header child.protected JViewportJScrollPane. viewportThe scrollpane's viewport child.protected JViewportScrollPaneLayout. viewportThe scrollpane's viewport child.protected JViewportJScrollPane.AccessibleJScrollPane. viewPortthisJScrollPane's currentJViewportMethods in javax.swing that return JViewport Modifier and Type Method Description protected JViewportJScrollPane. createViewport()Returns a newJViewportby default.JViewportJScrollPane. getColumnHeader()Returns the column header.JViewportScrollPaneLayout. getColumnHeader()Returns theJViewportobject that is the column header.JViewportJScrollPane. getRowHeader()Returns the row header.JViewportScrollPaneLayout. getRowHeader()Returns theJViewportobject that is the row header.JViewportJScrollPane. getViewport()Returns the currentJViewport.JViewportScrollPaneLayout. getViewport()Returns theJViewportobject that displays the scrollable contents.Methods in javax.swing with parameters of type JViewport Modifier and Type Method Description static ComponentSwingUtilities. getUnwrappedView(JViewport viewport)Returns the firstJViewport's descendant which is not an instance ofJLayer.voidJScrollPane. 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.voidJScrollPane. 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.voidJScrollPane. 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.
-