Uses of Class
javax.swing.JViewport
Packages that use JViewport
包
描述
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修饰符和类Field描述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修饰符和类方法描述protected JViewportJScrollPane.createViewport()Returns a newJViewportby default.JScrollPane.getColumnHeader()Returns the column header.ScrollPaneLayout.getColumnHeader()Returns theJViewportobject that is the column header.JScrollPane.getRowHeader()Returns the row header.ScrollPaneLayout.getRowHeader()Returns theJViewportobject that is the row header.JScrollPane.getViewport()Returns the currentJViewport.ScrollPaneLayout.getViewport()Returns theJViewportobject that displays the scrollable contents.Methods in javax.swing with parameters of type JViewport修饰符和类方法描述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.