Uses of Class
javax.swing.JViewport
-
Packages that use JViewport 软件包 描述 javax.swing 提供一组“轻量级”(全Java语言)组件,这些组件在所有平台上尽可能地工作。 -
-
Uses of JViewport in javax.swing
Fields in javax.swing declared as JViewport 变量和类型 字段 描述 protected JViewport
ScrollPaneLayout. colHead
列标题子。protected JViewport
JScrollPane. columnHeader
列标题子。protected JViewport
ScrollPaneLayout. rowHead
行标题子。protected JViewport
JScrollPane. rowHeader
行标题子。protected JViewport
JScrollPane. viewport
scrollpane的视口子项。protected JViewport
ScrollPaneLayout. viewport
scrollpane的视口子项。protected JViewport
JScrollPane.AccessibleJScrollPane. viewPort
这JScrollPane
的当前JViewport
Methods in javax.swing that return JViewport 变量和类型 方法 描述 protected JViewport
JScrollPane. createViewport()
默认情况下返回新的JViewport
。JViewport
JScrollPane. getColumnHeader()
返回列标题。JViewport
ScrollPaneLayout. getColumnHeader()
返回作为列标题的JViewport
对象。JViewport
JScrollPane. getRowHeader()
返回行标题。JViewport
ScrollPaneLayout. getRowHeader()
返回作为行标题的JViewport
对象。JViewport
JScrollPane. getViewport()
返回当前的JViewport
。JViewport
ScrollPaneLayout. getViewport()
返回显示可滚动内容的JViewport
对象。Methods in javax.swing with parameters of type JViewport 变量和类型 方法 描述 static Component
SwingUtilities. getUnwrappedView(JViewport viewport)
返回第一个JViewport
的后代,它不是JLayer
的实例。void
JScrollPane. setColumnHeader(JViewport columnHeader)
删除旧的columnHeader(如果存在); 如果新的columnHeader不是null
,则将其viewPosition的x坐标与视口(如果有的话)同步,然后将其添加到滚动窗格。void
JScrollPane. setRowHeader(JViewport rowHeader)
删除旧的rowHeader(如果存在); 如果新的rowHeader不是null
,则将其viewPosition的y坐标与视口(如果有的话)同步,然后将其添加到滚动窗格。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.
-