软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
java.awt.geom |
定义在二维几何相关的对象执行操作提供java 2D类。
|
java.awt.im |
提供输入法框架的类和接口。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.table |
处理
javax.swing.JTable 提供类和接口。
|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
javax.swing.tree |
处理
javax.swing.JTree 提供类和接口。
|
Modifier and Type | Method and Description |
---|---|
Color |
Component.getBackground()
获取此组件的背景颜色。
|
Rectangle |
Rectangle.getBounds()
得到这
Rectangle 包围
Rectangle 。
|
Font |
Component.getFont()
获取此组件的字体。
|
Color |
Component.getForeground()
获取此组件的前景色。
|
Point |
Point.getLocation()
返回这一点的位置。
|
Point |
ScrollPane.getScrollPosition()
返回当前的X,Y位置的孩子是在滚动面板查看端口0,0位置显示在。
|
Dimension |
Dimension.getSize()
得到这
Dimension 对象的大小。
|
boolean |
Component.isVisible()
确定该组件是否应该在它的父可见时可见。
|
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
RectangularShape.getFrame()
返回帧
Rectangle2D 定义这个物体的整体形状。
|
Modifier and Type | Method and Description |
---|---|
boolean |
InputContext.isCompositionEnabled()
确定是否启用了当前的输入法。
|
Modifier and Type | Method and Description |
---|---|
int |
DefaultListSelectionModel.getAnchorSelectionIndex()
返回最近调用第一个指标参数setselectioninterval(),addselectioninterval()或removeselectioninterval()。
|
ListCellRenderer<? super E> |
JList.getCellRenderer()
返回负责画列表项的对象。
|
JViewport |
JScrollPane.getColumnHeader()
返回列标题。
|
Icon |
JLabel.getDisabledIcon()
返回标签被禁用时使用的图标。
|
Icon |
AbstractButton.getDisabledIcon()
返回按钮时禁用按钮所使用的图标。
|
Dimension |
JViewport.getExtentSize()
返回视图坐标中视图的可见部分的大小。
|
JMenu |
JMenuBar.getHelpMenu()
获取菜单栏的帮助菜单。
|
JScrollBar |
JScrollPane.getHorizontalScrollBar()
收益水平滚动条控件的视图的水平显示位置。
|
Image |
ImageIcon.getImage()
返回此图标的
Image 。
|
ImageObserver |
ImageIcon.getImageObserver()
返回图像的图像观察者。
|
int |
DefaultListSelectionModel.getLeadSelectionIndex()
返回最近调用二指标参数setselectioninterval(),addselectioninterval()或removeselectioninterval()。
|
Dimension |
JComponent.getMaximumSize()
如果最大尺寸被设定为一个non-
null 价值才返回。
|
Dimension |
JComponent.getMinimumSize()
如果最小的尺寸被设定为一个non-
null 价值才返回。
|
Dimension |
JComponent.getPreferredSize()
如果
preferredSize 已设置为一个non-
null 价值才返回。
|
JViewport |
JScrollPane.getRowHeader()
返回行标题。
|
Component |
JTabbedPane.getSelectedComponent()
返回当前选择的组件,这个使用。
|
int |
JTabbedPane.getSelectedIndex()
返回当前选择的指标为使用。
|
int |
JComboBox.getSelectedIndex()
返回与给定项目匹配的列表中的第一个项目。
|
int[] |
JList.getSelectedIndices()
返回所有选定的索引的数组,以递增顺序。
|
JScrollBar |
JScrollPane.getVerticalScrollBar()
返回垂直滚动条控件的视图俯视图位置。
|
Modifier and Type | Method and Description |
---|---|
TableCellRenderer |
JTableHeader.getDefaultRenderer()
返回默认的渲染器使用时不
headerRenderer 由
TableColumn 定义。
|
Modifier and Type | Method and Description |
---|---|
Caret |
JTextComponent.getCaret()
获取符号允许在视图的文本导航。
|
int |
JTextComponent.getCaretPosition()
返回文本组件的文本插入符号的位置。
|
int |
JTextComponent.getSelectionEnd()
返回选定的文本的结束位置。
|
int |
JTextComponent.getSelectionStart()
返回选定文本的起始位置。
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultMutableTreeNode.setParent(MutableTreeNode newParent)
设置该节点的父
newParent 但不改变父母的子阵列。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.