參數類型為 Component 的 java.awt 中的方法 | |
---|---|
protected boolean | DefaultFocusTraversalPolicy.accept(Component aComponent) 確定是否可以接受選擇某個 Component 作為新的焦點所有者。 |
protected boolean | ContainerOrderFocusTraversalPolicy.accept(Component aComponent) 確定是否可以接受選擇某個 Component 作為新的焦點擁有者。 |
Component | Container.add(Component comp) 將指定組件追加到此容器的尾部。 |
Component | Container.add(Component comp, int index) 將指定組件添加到此容器的給定位置上。 |
void | Container.add(Component comp, Object constraints) 將指定的組件添加到此容器的尾部。 |
void | Container.add(Component comp, Object constraints, int index) 使用指定約束,將指定組件添加到此容器的指定索引所在的位置上。 |
Component | Container.add(String name, Component comp) 將指定組件添加到此容器中。 |
protected void | ScrollPane.addImpl(Component comp, Object constraints, int index) 將指定的組件添加到此滾動窗格容器。 |
protected void | Container.addImpl(Component comp, Object constraints, int index) 將指定組件添加到此容器的指定索引所在的位置上。 |
void | GridBagLayout.addLayoutComponent(Component comp, Object constraints) 使用指定 constraints 對象將指定組件添加到布局中。 |
void | CardLayout.addLayoutComponent(Component comp, Object constraints) 將指定的組件添加到此卡片布局的內部名稱表。 |
void | BorderLayout.addLayoutComponent(Component comp, Object constraints) 使用指定的約束對象將指定組件添加到布局中。 |
void | LayoutManager2.addLayoutComponent(Component comp, Object constraints) 使用指定約束對象,將指定組件添加到布局。 |
void | GridBagLayout.addLayoutComponent(String name, Component comp) 無效,因為此布局管理器不使用每組件字符串。 |
void | GridLayout.addLayoutComponent(String name, Component comp) 將具有指定名稱的指定組件添加到布局。 |
void | CardLayout.addLayoutComponent(String name, Component comp) 已過時。 由 addLayoutComponent(Component, Object) 取代。 |
void | FlowLayout.addLayoutComponent(String name, Component comp) 將指定的組件添加到布局中。 |
void | BorderLayout.addLayoutComponent(String name, Component comp) 已過時。 由 addLayoutComponent(Component, Object) 取代。 |
void | LayoutManager.addLayoutComponent(String name, Component comp) 如果布局管理器使用每組件字符串,則將組件 comp 添加到布局,並將它與 name 指定的字符串關聯。 |
protected java.awt.peer.LightweightPeer | Toolkit.createComponent(Component target) 創建組件或容器的同位體。 |
| Toolkit.createDragGestureRecognizer(Class<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl) 創建所請求的抽象 DragGestureRecognizer 類的具體的、與平臺有關的子類,並將它與指定的 DragSource、Component 和 DragGestureListener 關聯。 |
protected void | DefaultKeyboardFocusManager.dequeueKeyEvents(long after, Component untilFocused) 釋放正常指派到當前焦點所有者的所有 KeyEvent,這些 KeyEvent 因為調用了具有相同時間戳和 Component 的 enqueueKeyEvents 而被加入隊列。 |
protected abstract void | KeyboardFocusManager.dequeueKeyEvents(long after, Component untilFocused) 由 AWT 調用以通知 KeyboardFocusManager 應該取消延遲指派 KeyEvent。 |
protected void | DefaultKeyboardFocusManager.discardKeyEvents(Component comp) 放棄因為一次或多次調用具有指定 Component 或其子代之一的 enqueueKeyEvents 而加入隊列的所有 KeyEvent。 |
protected abstract void | KeyboardFocusManager.discardKeyEvents(Component comp) 由 AWT 調用以通知 KeyboardFocusManager 應該取消延遲指派 KeyEvent。 |
protected void | DefaultKeyboardFocusManager.enqueueKeyEvents(long after, Component untilFocused) 延遲對 KeyEvent 的指派,直到指定的 Component 成為焦點所有者。 |
protected abstract void | KeyboardFocusManager.enqueueKeyEvents(long after, Component untilFocused) 在指定的 Component 成為焦點所有者以前由 AWT 調用,以通知 KeyboardFocusManager 延遲指派 KeyEvent。 |
void | DefaultKeyboardFocusManager.focusNextComponent(Component aComponent) 使 aComponent 後面的 Component 擁有焦點,通常基於 FocusTraversalPolicy。 |
abstract void | KeyboardFocusManager.focusNextComponent(Component aComponent) 聚焦 aComponent 之後的 Component,通常基於 FocusTraversalPolicy。 |
void | DefaultKeyboardFocusManager.focusPreviousComponent(Component aComponent) 使 aComponent 前面的 Component 擁有焦點,通常基於 FocusTraversalPolicy。 |
abstract void | KeyboardFocusManager.focusPreviousComponent(Component aComponent) 聚焦 aComponent 之前的 Component,通常基於 FocusTraversalPolicy。 |
Component | ContainerOrderFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent) 返回應該接收 aComponent 後面的焦點的 Component。 |
abstract Component | FocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent) 返回應該接收 aComponent 之後的焦點的 Component,aContainer 必須是 aComponent 的焦點循環根,或者焦點遍歷策略提供者。 |
Component | ContainerOrderFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent) 返回應該接收 aComponent 前面的焦點的 Component。 |
abstract Component | FocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent) 返回應該接收 aComponent 之前的焦點的 Component,aContainer 必須是 aComponent 的焦點循環根,或焦點遍歷策略提供者。 |
int | Container.getComponentZOrder(Component comp) 返回容器內組件的 z 順序索引。 |
GridBagConstraints | GridBagLayout.getConstraints(Component comp) 獲取指定組件的約束。 |
Object | BorderLayout.getConstraints(Component comp) 獲取指定組件的約束 |
protected static Container | Toolkit.getNativeContainer(Component c) 使本機同位體能夠查詢給定本機組件的本機容器(例如,直接父組件可以是輕量級的)。 |
boolean | Container.isAncestorOf(Component c) 檢查該組件是否包含在此容器的組件層次結構中。 |
protected GridBagConstraints | GridBagLayout.lookupConstraints(Component comp) 檢索指定組件的約束。 |
void | DefaultKeyboardFocusManager.processKeyEvent(Component focusedComponent, KeyEvent e) 若且唯若該 KeyEvent 表示指定 focusedComponent 的焦點遍歷鍵時,此方法才會啟動一個焦點遍歷操作。 |
abstract void | KeyboardFocusManager.processKeyEvent(Component focusedComponent, KeyEvent e) 若且唯若該 KeyEvent 表示指定 focusedComponent 的焦點遍歷鍵時,此方法啟動焦點遍歷操作。 |
void | KeyboardFocusManager.redispatchEvent(Component target, AWTEvent e) 重新指派 AWTEvent 的方式是,AWT 事件調度程序不會遞歸式請求 KeyboardFocusManager 或任何已安裝的 KeyEventDispatcher 再次指派該事件。 |
void | Container.remove(Component comp) 從此容器中移除指定組件。 |
void | GridBagLayout.removeLayoutComponent(Component comp) 從此布局移除指定組件。 |
void | GridLayout.removeLayoutComponent(Component comp) 從布局移除指定組件。 |
void | CardLayout.removeLayoutComponent(Component comp) 從布局中移除指定的組件。 |
void | FlowLayout.removeLayoutComponent(Component comp) 從布局中移除指定的組件。 |
void | BorderLayout.removeLayoutComponent(Component comp) 從此邊框布局中移除指定組件。 |
void | LayoutManager.removeLayoutComponent(Component comp) 從布局移除指定組件。 |
void | Container.setComponentZOrder(Component comp, int index) 將指定組件移動到容器中指定的 z 順序索引。 |
void | GridBagLayout.setConstraints(Component comp, GridBagConstraints constraints) 設置此布局中指定組件的約束條件。 |
protected void | KeyboardFocusManager.setGlobalFocusOwner(Component focusOwner) 設置焦點所有者。 |
protected void | KeyboardFocusManager.setGlobalPermanentFocusOwner(Component permanentFocusOwner) 設置持久焦點所有者。 |
void | Window.setLocationRelativeTo(Component c) 設置窗口相對於指定組件的位置。 |
void | PopupMenu.show(Component origin, int x, int y) 在相對於初始組件的 x、y 位置上顯示彈出式菜單。 |
void | DefaultKeyboardFocusManager.upFocusCycle(Component aComponent) 將焦點上移一個焦點遍歷循環。 |
abstract void | KeyboardFocusManager.upFocusCycle(Component aComponent) 將焦點上移一個焦點遍歷循環。 |
參數類型為 Component 的 java.awt.event 中的構造方法 | |
---|---|
ComponentEvent(Component source, int id) 構造一個 ComponentEvent 對象。 | |
ContainerEvent(Component source, int id, Component child) 構造一個 ContainerEvent 對象。 | |
FocusEvent(Component source, int id) 構造一個 FocusEvent 對象,並將它標識為一個持久性焦點更改。 | |
FocusEvent(Component source, int id, boolean temporary) 構造一個 FocusEvent 對象,並將標識更改是否為暫時的。 | |
FocusEvent(Component source, int id, boolean temporary, Component opposite) 構造一個 FocusEvent 對象,它具有指定的暫時狀態和對立 Component 。 | |
HierarchyEvent(Component source, int id, Component changed, Container changedParent) 構造一個 HierarchyEvent 對象來標識 Component 層次結構中的更改。 | |
HierarchyEvent(Component source, int id, Component changed, Container changedParent, long changeFlags) 構造一個 HierarchyEvent 對象來標識 Component 層次結構中的更改。 | |
InputMethodEvent(Component source, int id, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition) 通過指定源組件、類型、文本、插入符和 visiblePosition 來構造 InputMethodEvent 。 | |
InputMethodEvent(Component source, int id, long when, AttributedCharacterIterator text, int committedCharacterCount, TextHitInfo caret, TextHitInfo visiblePosition) 通過指定源組件、類型、時間、文本、插入符和 visiblePosition 來構造 InputMethodEvent 。 | |
InputMethodEvent(Component source, int id, TextHitInfo caret, TextHitInfo visiblePosition) 通過指定源組件、類型、插入符和 visiblePosition 來構造 InputMethodEvent 。 | |
KeyEvent(Component source, int id, long when, int modifiers, int keyCode) 已過時。 從 JDK1.1 開始 | |
KeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar) 構造一個 KeyEvent 對象。 | |
KeyEvent(Component source, int id, long when, int modifiers, int keyCode, char keyChar, int keyLocation) | |
MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger) 構造一個具有指定源組件、類型、修飾符、坐標和單擊計數的 MouseEvent 對象。 | |
MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) 構造一個具有指定源組件、類型、修飾符、坐標和單擊計數的 MouseEvent 對象。 | |
MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, int button) 構造一個具有指定源組件、類型、修飾符、相對坐標、絕對坐標和單擊計數的 MouseEvent 對象。 | |
MouseWheelEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int scrollType, int scrollAmount, int wheelRotation) 構造一個具有指定源組件、類型、修改鍵、坐標、滾動類型、滾動量和滾輪旋轉的 MouseWheelEvent 。 | |
MouseWheelEvent(Component source, int id, long when, int modifiers, int x, int y, int xAbs, int yAbs, int clickCount, boolean popupTrigger, int scrollType, int scrollAmount, int wheelRotation) 構造一個具有指定源組件、類型、修改鍵、坐標、絕對坐標、滾動類型、滾動量和滾輪滾動的 MouseWheelEvent 對象。 | |
PaintEvent(Component source, int id, Rectangle updateRect) 構造一個具有指定源組件和類型的 PaintEvent 對象。 |
返回 Component 的 javax.swing 中的方法 | |
---|---|
Component | JTabbedPane.add(Component component) 添加一個 component ,其選項卡的默認值為調用 component.getName 返回的組件的名稱。 |
Component | JMenu.add(Component c) 將某個組件追加到此菜單的末尾。 |
Component | JTabbedPane.add(Component component, int index) 在指定的選項卡索引位置添加一個 component ,默認的選項卡標題為組件名稱。 |
Component | JMenu.add(Component c, int index) 將指定組件添加到此容器的給定位置上。 |
Component | JTabbedPane.add(String title, Component component) 添加具有指定選項卡標題的 component 。 |
protected Component | ScrollPaneLayout.addSingletonComponent(Component oldC, Component newC) 移除現有組件。 |
Component | MenuSelectionManager.componentForPoint(Component source, Point sourcePoint) 返回包含 sourcePoint 的當前選擇路徑的組件。 |
protected Component | JRootPane.createGlassPane() 由構造方法調用以便創建默認的 glassPane 。 |
static Component | Box.createGlue() 創建一個不可見的 "glue" 組件,其可見組件有一個最大寬度(對於橫向 box)或高度(對於縱向 box)的 Box,該組件可能很有用。 |
static Component | Box.createHorizontalGlue() 創建一個橫向 glue 組件。 |
static Component | Box.createHorizontalStrut(int width) 創建一個不可見的、固定寬度的組件。 |
static Component | Box.createRigidArea(Dimension d) 創建一個總是具有指定大小的不可見組件。 |
static Component | Box.createVerticalGlue() 創建一個縱向 glue 組件。 |
static Component | Box.createVerticalStrut(int height) 創建一個不可見的、固定高度的組件。 |
static Component | SwingUtilities.findFocusOwner(Component c) 已過時。 從 1.4 開始,由 KeyboardFocusManager.getFocusOwner() 取代。 |
Component | JSplitPane.getBottomComponent() 返回分隔條下面或者右邊的組件。 |
Component | Renderer.getComponent() 返回用於呈現該值的組件。 |
Component | DefaultCellEditor.getComponent() 返回對編輯器組件的引用。 |
Component | TransferHandler.TransferSupport.getComponent() 返回此傳輸的目標組件。 |
Component | JPopupMenu.getComponent() 返回此 JPopupMenu 組件。 |
Component | JMenuBar.getComponent() 實現為 MenuElement 。 |
Component | JMenu.getComponent() 返回用於繪製此 MenuElement 的 java.awt.Component 。 |
Component | JMenuItem.getComponent() 返回用於繪製此對象的 java.awt.Component 。 |
Component | MenuElement.getComponent() 此方法應返回用於繪製接收元素的 java.awt.Component。 |
Component | DefaultFocusManager.getComponentAfter(Container aContainer, Component aComponent) |
Component | LayoutFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent) 返回應在 aComponent 之後接收焦點的 Component。 |
Component | SortingFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent) 返回應該接收 aComponent 後面的焦點的 Component。 |
Component | JTabbedPane.getComponentAt(int index) 返回 index 位置的組件。 |
Component | JPopupMenu.getComponentAtIndex(int i) 已過時。 由 Container.getComponent(int) 取代 |
Component | JMenuBar.getComponentAtIndex(int i) 已過時。 由 getComponent(int i) 取代 |
Component | JToolBar.getComponentAtIndex(int i) 返回指定索引位置的組件。 |
Component | DefaultFocusManager.getComponentBefore(Container aContainer, Component aComponent) |
Component | LayoutFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent) 返回應在 aComponent 之前接收焦點的 Component。 |
Component | SortingFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent) 返回應該接收 aComponent 前面的焦點的 Component。 |
Component[] | JLayeredPane.getComponentsInLayer(int layer) 返回指定層中組件的數組。 |
Component | ScrollPaneLayout.getCorner(String key) 返回位於指定角的 Component 。 |
Component | JScrollPane.getCorner(String key) 返回位於指定角的組件。 |
protected Component | JTable.AccessibleJTable.AccessibleJTableCell.getCurrentComponent() 獲取表單元格渲染器組件。 |
static Component | SwingUtilities.getDeepestComponentAt(Component parent, int x, int y) 返回包含位置 x 、y 的 parent 的最深可見後代組件。 |
Component | SortingFocusTraversalPolicy.getDefaultComponent(Container aContainer) 返回默認擁有焦點的 Component。 |
Component | JTable.getEditorComponent() 返回處理編輯會話的組件。 |
Component | ComboBoxEditor.getEditorComponent() 返回應該添加到此編輯器的樹層次結構中的組件。 |
Component | DefaultFocusManager.getFirstComponent(Container aContainer) |
Component | LayoutFocusTraversalPolicy.getFirstComponent(Container aContainer) 返回遍歷循環中的第一個 Component。 |
Component | SortingFocusTraversalPolicy.getFirstComponent(Container aContainer) 返回遍歷循環中的第一個 Component。 |
Component | JInternalFrame.getFocusOwner() 如果此 JInternalFrame 處於激活狀態,則返回具有焦點的子組件。 |
Component | JApplet.getGlassPane() 返回此 applet 的 glassPane 對象。 |
Component | JWindow.getGlassPane() 返回此窗口的 glassPane Component 。 |
Component | JDialog.getGlassPane() 返回此對話框的 glassPane 對象。 |
Component | JInternalFrame.getGlassPane() 返回此內部窗體的玻璃窗格。 |
Component | JRootPane.getGlassPane() 返回此 JRootPane 的當前玻璃窗格。 |
Component | JFrame.getGlassPane() 返回此窗體的 glassPane 對象。 |
Component | RootPaneContainer.getGlassPane() 返回 glassPane。 |
Component | InternalFrameFocusTraversalPolicy.getInitialComponent(JInternalFrame frame) 返回第一次選擇 JInternalFrame 時應該接收焦點的 Component。 |
Component | JPopupMenu.getInvoker() 返回作為此彈出菜單的「調用者」的組件。 |
Component | JLabel.getLabelFor() 獲取要添加標籤的組件。 |
Component | DefaultFocusManager.getLastComponent(Container aContainer) |
Component | LayoutFocusTraversalPolicy.getLastComponent(Container aContainer) 返回遍歷循環中的最後一個 Component。 |
Component | SortingFocusTraversalPolicy.getLastComponent(Container aContainer) 返回遍歷循環中的最後一個 Component。 |
Component | JSplitPane.getLeftComponent() 返回分隔條左邊(或者上面)的組件。 |
Component | DefaultListCellRenderer.getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) |
Component | ListCellRenderer.getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) 返回已配置用於顯示指定值的組件。 |
Component | JMenu.getMenuComponent(int n) 返回位於位置 n 的組件。 |
Component[] | JMenu.getMenuComponents() 返回菜單子組件的 Component 數組。 |
Component | JInternalFrame.getMostRecentFocusOwner() 返回選定此 JInternalFrame 時,將接收焦點的 JInternalFrame 子組件。 |
Component | JComponent.getNextFocusableComponent() 已過時。 從 1.4 版本開始,由 FocusTraversalPolicy 取代。 |
Component | JSplitPane.getRightComponent() 返回分隔條右邊(或者下面)的組件。 |
static Component | SwingUtilities.getRoot(Component c) 返回當前組件樹結構的根組件。 |
Component | JTabbedPane.getSelectedComponent() 返回此選項卡窗格當前選擇的組件。 |
Component | JTabbedPane.getTabComponentAt(int index) 返回 index 位置上的選項卡組件。 |
Component | DefaultCellEditor.getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) 實現 TableCellEditor 接口。 |
Component | JSplitPane.getTopComponent() 返回分隔條上面或者左邊的組件。 |
Component | DefaultCellEditor.getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) 實現 TreeCellEditor 接口。 |
Component | JViewport.getView() 返回 JViewport 的一個子對象或 null 。 |
Component | JTable.prepareEditor(TableCellEditor editor, int row, int column) 通過查詢 row 、column 處單元格值的數據模型和單元格選擇狀態來準備編輯器。 |
Component | JTable.prepareRenderer(TableCellRenderer renderer, int row, int column) 通過查詢 row 、column 處單元格值的數據模型和單元格選擇狀態來準備渲染器。 |
參數類型為 Component 的 javax.swing 中的方法 | |
---|---|
protected boolean | LayoutFocusTraversalPolicy.accept(Component aComponent) 確定是否可以接受選擇指定的 Component 作為新的焦點所有者。 |
protected boolean | SortingFocusTraversalPolicy.accept(Component aComponent) 確定是否可以接受選擇某個 Component 作為新的焦點擁有者。 |
Component | JTabbedPane.add(Component component) 添加一個 component ,其選項卡的默認值為調用 component.getName 返回的組件的名稱。 |
Component | JMenu.add(Component c) 將某個組件追加到此菜單的末尾。 |
Component | JTabbedPane.add(Component component, int index) 在指定的選項卡索引位置添加一個 component ,默認的選項卡標題為組件名稱。 |
Component | JMenu.add(Component c, int index) 將指定組件添加到此容器的給定位置上。 |
void | JTabbedPane.add(Component component, Object constraints) 將一個 component 添加到選項卡窗格中。 |
void | JTabbedPane.add(Component component, Object constraints, int index) 在指定的選項卡索引位置添加一個 component 。 |
Component | JTabbedPane.add(String title, Component component) 添加具有指定選項卡標題的 component 。 |
GroupLayout.SequentialGroup | GroupLayout.SequentialGroup.addComponent(boolean useAsBaseline, Component component) 將 Component 添加到此 Group 。 |
GroupLayout.SequentialGroup | GroupLayout.SequentialGroup.addComponent(boolean useAsBaseline, Component component, int min, int pref, int max) 使用指定大小將 Component 添加到此 Group 。 |
GroupLayout.Group | GroupLayout.Group.addComponent(Component component) 將 Component 添加到此 Group 。 |
GroupLayout.SequentialGroup | GroupLayout.SequentialGroup.addComponent(Component component) 將 Component 添加到此 Group 。 |
GroupLayout.ParallelGroup | GroupLayout.ParallelGroup.addComponent(Component component) 將 Component 添加到此 Group 。 |
GroupLayout.ParallelGroup | GroupLayout.ParallelGroup.addComponent(Component component, GroupLayout.Alignment alignment) 使用指定的對齊方式將 Component 添加到此 ParallelGroup 。 |
GroupLayout.ParallelGroup | GroupLayout.ParallelGroup.addComponent(Component component, GroupLayout.Alignment alignment, int min, int pref, int max) 使用指定的對齊方式和大小將 Component 添加到此 ParallelGroup 。 |
GroupLayout.Group | GroupLayout.Group.addComponent(Component component, int min, int pref, int max) 使用指定大小將 Component 添加到此 Group 。 |
GroupLayout.SequentialGroup | GroupLayout.SequentialGroup.addComponent(Component component, int min, int pref, int max) 使用指定大小將 Component 添加到此 Group 。 |
GroupLayout.ParallelGroup | GroupLayout.ParallelGroup.addComponent(Component component, int min, int pref, int max) 使用指定大小將 Component 添加到此 Group 。 |
protected void | JDesktopPane.addImpl(Component comp, Object constraints, int index) 將指定組件添加到此容器的指定索引所在的位置上。 |
protected void | JApplet.addImpl(Component comp, Object constraints, int index) 添加指定的子 Component 。 |
protected void | JWindow.addImpl(Component comp, Object constraints, int index) 添加指定的子 Component 。 |
protected void | JViewport.addImpl(Component child, Object constraints, int index) 設置 JViewport 的輕量子對象,可以為 null 。 |
protected void | CellRendererPane.addImpl(Component x, Object constraints, int index) 如果指定組件已經是此組件的子組件,則不必再操心去做任何事,堆棧順序對於單元格渲染器組件而言無關緊要(CellRendererPane 不管怎樣都不進行繪製)。 |
protected void | JSplitPane.addImpl(Component comp, Object constraints, int index) 將指定組件添加到此分隔窗格。 |
protected void | JToolBar.addImpl(Component comp, Object constraints, int index) 在添加 JButton 時,它最初被設置為 disabled。 |
protected void | JDialog.addImpl(Component comp, Object constraints, int index) 添加指定的子 Component 。 |
protected void | AbstractButton.addImpl(Component comp, Object constraints, int index) 將指定組件添加到此容器的指定索引所在的位置上,有關此方法的完整描述,請參閱 Container.addImpl(Component, Object, int) 。 |
protected void | JInternalFrame.addImpl(Component comp, Object constraints, int index) 添加指定的子 Component 。 |
protected void | JLayeredPane.addImpl(Component comp, Object constraints, int index) |
protected void | JRootPane.addImpl(Component comp, Object constraints, int index) 重寫以便將玻璃組件的位置強行設置成零位子級。 |
protected void | JFrame.addImpl(Component comp, Object constraints, int index) 添加指定的子 Component 。 |
void | GroupLayout.addLayoutComponent(Component component, Object constraints) 已將 Component 添加到父容器的通知。 |
void | OverlayLayout.addLayoutComponent(Component comp, Object constraints) 使用指定的約束對象將指定組件添加到布局中。 |
void | SpringLayout.addLayoutComponent(Component component, Object constraints) 如果 constraints 是 SpringLayout.Constraints 的一個實例,則將該約束與指定組件相關聯。 |
void | BoxLayout.addLayoutComponent(Component comp, Object constraints) 此類不使用。 |
void | JRootPane.RootLayout.addLayoutComponent(Component comp, Object constraints) |
void | GroupLayout.addLayoutComponent(String name, Component component) 已將 Component 添加到父容器的通知。 |
void | JSpinner.DefaultEditor.addLayoutComponent(String name, Component child) 此 LayoutManager 方法不執行任何操作。 |
void | OverlayLayout.addLayoutComponent(String name, Component comp) 將指定的組件添加到布局中。 |
void | SpringLayout.addLayoutComponent(String name, Component c) 無效,因為此布局管理器不使用每組件字符串。 |
void | ViewportLayout.addLayoutComponent(String name, Component c) 將指定的組件添加到布局中。 |
void | ScrollPaneLayout.addLayoutComponent(String s, Component c) 將指定的組件添加到布局中。 |
void | BoxLayout.addLayoutComponent(String name, Component comp) 此類不使用。 |
void | JRootPane.RootLayout.addLayoutComponent(String name, Component comp) |
protected Component | ScrollPaneLayout.addSingletonComponent(Component oldC, Component newC) 移除現有組件。 |
void | JTabbedPane.addTab(String title, Component component) 添加一個由 title 表示,且沒有圖標的 component 。 |
void | JTabbedPane.addTab(String title, Icon icon, Component component) 添加一個由 title 和/或 icon 表示的 component ,其任意一個都可以為 null 。 |
void | JTabbedPane.addTab(String title, Icon icon, Component component, String tip) 添加由 title 和/或 icon 表示的 component 和 tip ,其中任意一個都可以為 null 。 |
boolean | DefaultFocusManager.compareTabOrder(Component a, Component b) |
Component | MenuSelectionManager.componentForPoint(Component source, Point sourcePoint) 返回包含 sourcePoint 的當前選擇路徑的組件。 |
static MouseEvent | SwingUtilities.convertMouseEvent(Component source, MouseEvent sourceEvent, Component destination) 返回類似於 sourceEvent 的 MouseEvent,除了其 x 和 y 成員已轉換到 destination 的坐標系統。 |
static Point | SwingUtilities.convertPoint(Component source, int x, int y, Component destination) 將 source 坐標系統中的點 (x,y) 轉換到 destination 坐標系統。 |
static Point | SwingUtilities.convertPoint(Component source, Point aPoint, Component destination) 將 source 坐標系統中的 aPoint 轉換到 destination 坐標系統。 |
static void | SwingUtilities.convertPointFromScreen(Point p, Component c) 將一個點從屏幕坐標轉換到組件的坐標系統 |
static void | SwingUtilities.convertPointToScreen(Point p, Component c) 將一個點從組件的坐標系統轉換到屏幕坐標。 |
static Rectangle | SwingUtilities.convertRectangle(Component source, Rectangle aRectangle, Component destination) 將 source 坐標系統中的矩形 aRectangle 轉換到 destination 坐標系統。 |
protected JDialog | JFileChooser.createDialog(Component parent) 創建並返回包含 this 的新 JDialog ,在 parent 窗體中的 parent 上居中。 |
JDialog | JOptionPane.createDialog(Component parentComponent, String title) 創建並返回一個新 JDialog ,它在 parentComponent 窗體中的 parentComponent 中央包裝 this 。 |
static JDialog | JColorChooser.createDialog(Component c, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener) 創建並返回包含指定 ColorChooser 窗格及 "OK"、"Cancel" 和 "Reset" 按鈕的新對話框。 |
JInternalFrame | JOptionPane.createInternalFrame(Component parentComponent, String title) 創建並返回 JInternalFrame 的實例。 |
static RepaintManager | RepaintManager.currentManager(Component c) 在給定 Component 的情況下,返回調用線程的 RepaintManager。 |
static Component | SwingUtilities.findFocusOwner(Component c) 已過時。 從 1.4 開始,由 KeyboardFocusManager.getFocusOwner() 取代。 |
static Accessible | SwingUtilities.getAccessibleAt(Component c, Point p) 如果存在,則返回本地坐標 Point 處包含的 Accessible 子對象。 |
static Accessible | SwingUtilities.getAccessibleChild(Component c, int i) 返回對象的第 n 個可訪問子對象。 |
static int | SwingUtilities.getAccessibleChildrenCount(Component c) 返回對象中可訪問的子對象數。 |
static int | SwingUtilities.getAccessibleIndexInParent(Component c) 獲取此對象在其可訪問的父對象中的索引。 |
static AccessibleStateSet | SwingUtilities.getAccessibleStateSet(Component c) 獲取此對象的狀態。 |
static Container | SwingUtilities.getAncestorNamed(String name, Component comp) 在組件層次結構中搜索上面的 comp 的便捷方法,返回它找到的 name 第一個對象。 |
static Container | SwingUtilities.getAncestorOfClass(Class<?> c, Component comp) 在組件層次結構中搜索上面的 comp 的便捷方法,返回它找到的類 c 的第一個對象。 |
Component | DefaultFocusManager.getComponentAfter(Container aContainer, Component aComponent) |
Component | LayoutFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent) 返回應在 aComponent 之後接收焦點的 Component。 |
Component | SortingFocusTraversalPolicy.getComponentAfter(Container aContainer, Component aComponent) 返回應該接收 aComponent 後面的焦點的 Component。 |
Component | DefaultFocusManager.getComponentBefore(Container aContainer, Component aComponent) |
Component | LayoutFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent) 返回應在 aComponent 之前接收焦點的 Component。 |
Component | SortingFocusTraversalPolicy.getComponentBefore(Container aContainer, Component aComponent) 返回應該接收 aComponent 前面的焦點的 Component。 |
int | JPopupMenu.getComponentIndex(Component c) 返回指定組件的索引。 |
int | JMenuBar.getComponentIndex(Component c) 返回指定組件的索引。 |
int | JToolBar.getComponentIndex(Component c) 返回指定組件的索引。 |
Spring | SpringLayout.getConstraint(String edgeName, Component c) 返回控制該組件指定邊及其父級的頂邊或左邊之間距離的 spring。 |
SpringLayout.Constraints | SpringLayout.getConstraints(Component c) 返回指定組件的約束。 |
static Component | SwingUtilities.getDeepestComponentAt(Component parent, int x, int y) 返回包含位置 x 、y 的 parent 的最深可見後代組件。 |
static JDesktopPane | JOptionPane.getDesktopPaneForComponent(Component parentComponent) 返回指定組件的桌面窗格。 |
static Frame | JOptionPane.getFrameForComponent(Component parentComponent) 返回指定組件的 Frame 。 |
int | JLayeredPane.getIndexOf(Component c) 返回指定 Component 的索引。 |
int | JLayeredPane.getLayer(Component c) 返回指定 Component 的 layer 屬性。 |
static JLayeredPane | JLayeredPane.getLayeredPaneAbove(Component c) 一個便捷方法,它返回包含指定組件的第一個 JLayeredPane。 |
static Rectangle | SwingUtilities.getLocalBounds(Component aComponent) 返回組件 aComponent 的矩形 (0,0,bounds.width,bounds.height)。 |
Image | RepaintManager.getOffscreenBuffer(Component c, int proposedWidth, int proposedHeight) 返回屏幕外緩衝區,它應用作帶有組件 c 的雙緩衝區。 |
Popup | PopupFactory.getPopup(Component owner, Component contents, int x, int y) 為包含 Component contents 的 Component owner 創建 Popup 。 |
int | JLayeredPane.getPosition(Component c) 獲得該組件在其所在層中的相對位置。 |
static Component | SwingUtilities.getRoot(Component c) 返回當前組件樹結構的根組件。 |
static JRootPane | SwingUtilities.getRootPane(Component c) 如果 c 是一個 JRootPane 後代,則返回其 JRootPane 祖先。 |
Image | RepaintManager.getVolatileOffscreenBuffer(Component c, int proposedWidth, int proposedHeight) 返回可變屏幕外緩衝區,它應用作帶有指定組件 c 的雙緩衝區。 |
static Window | SwingUtilities.getWindowAncestor(Component c) 返回 c 的第一個 Window 祖先;如果 c 未包含在 Window 內,則返回 null 。 |
static Spring | Spring.height(Component c) 返回一個 spring,其 minimum、preferred、maximum 和 value 屬性由所提供組件的 minimumSize、preferredSize、maximumSize 和 size 屬性的高度定義。 |
int | JTabbedPane.indexOfComponent(Component component) 返回指定組件的選項卡索引。 |
int | JTabbedPane.indexOfTabComponent(Component tabComponent) 返回指定選項卡組件的選項卡索引。 |
void | JPopupMenu.insert(Component component, int index) 將指定組件插入到菜單的給定位置。 |
void | JTextPane.insertComponent(Component c) 將一個組件插入到文檔中,以替換當前選擇的內容。 |
void | JTabbedPane.insertTab(String title, Icon icon, Component component, String tip, int index) 在 index 位置插入一個 component ,該組件通過 title 和/或 icon (任意一個都可以為 null )來表示。 |
boolean | MenuSelectionManager.isComponentPartOfCurrentMenu(Component c) 如果 c 是當前使用菜單的一部分,則返回 true |
static boolean | SwingUtilities.isDescendingFrom(Component a, Component b) 如果組件 a 從組件 b 繼承,則返回 true 。 |
static boolean | JComponent.isLightweightComponent(Component c) 如果此組件是輕量的,也就是說,如果它沒有本機窗口系統同位體,則返回 true。 |
boolean | JMenu.isMenuComponent(Component c) 如果在子菜單層次結構中存在指定的組件,則返回 true。 |
void | GroupLayout.linkSize(Component... components) 將指定組件強制調整為具有相同的大小,而不管其首選大小、最小大小或最大大小如何。 |
void | GroupLayout.linkSize(int axis, Component... components) 將指定組件強制調整為沿指定軸具有相同的大小,而不管其首選大小、最小大小或最大大小如何。 |
void | JLayeredPane.moveToBack(Component c) 將該組件移到當前層中所有組件的底層(位置 -1)。 |
void | JLayeredPane.moveToFront(Component c) 將該組件移到當前層中所有組件的頂層(位置 0)。 |
void | CellRendererPane.paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h) 調用 this.paintComponent(g, c, p, x, y, w, h, false)。 |
static void | SwingUtilities.paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h) 在指定的 Graphics 上繪製組件。 |
void | CellRendererPane.paintComponent(Graphics g, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate) 在圖形對象 g 上繪製一個單元格渲染器組件 c。 |
void | CellRendererPane.paintComponent(Graphics g, Component c, Container p, Rectangle r) 使用矩形的 x、y、width 和 height 欄位的調用 this.paintComponent()。 |
static void | SwingUtilities.paintComponent(Graphics g, Component c, Container p, Rectangle r) 在指定的 Graphics 上繪製組件。 |
void | ImageIcon.paintIcon(Component c, Graphics g, int x, int y) 繪製圖標。 |
void | Icon.paintIcon(Component c, Graphics g, int x, int y) 在指定位置上繪製圖標。 |
void | LookAndFeel.provideErrorFeedback(Component component) 在用戶嘗試一個無效操作時調用,例如,在具有焦點的不可編輯的 JTextField 中進行粘貼。 |
void | SpringLayout.putConstraint(String e1, Component c1, int pad, String e2, Component c2) 將組件 c1 的邊 e1 連接到組件 c2 的邊 e2 ,邊與邊之間的距離固定。 |
void | SpringLayout.putConstraint(String e1, Component c1, Spring s, String e2, Component c2) 將組件 c1 的邊 e1 連接到組件 c2 的邊 e2 。 |
void | JApplet.remove(Component comp) 從容器中移除指定的組件。 |
void | JTabbedPane.remove(Component component) 從 JTabbedPane 中移除指定 Component 。 |
void | JWindow.remove(Component comp) 從該容器中移除指定組件。 |
void | JViewport.remove(Component child) 移除 Viewport 的一個輕量子對象。 |
void | JSplitPane.remove(Component component) 移除窗格中的子組件 component 。 |
void | JDialog.remove(Component comp) 從該容器中移除指定組件。 |
void | JMenu.remove(Component c) 從此菜單移除組件 c 。 |
void | JInternalFrame.remove(Component comp) 從此容器中移除指定組件。 |
void | JFrame.remove(Component comp) 從該容器中移除指定組件。 |
void | GroupLayout.removeLayoutComponent(Component component) 已從父容器中移除 Component 的通知。 |
void | JSpinner.DefaultEditor.removeLayoutComponent(Component child) 此 LayoutManager 方法不執行任何操作。 |
void | OverlayLayout.removeLayoutComponent(Component comp) 從布局移除指定組件。 |
void | SpringLayout.removeLayoutComponent(Component c) 移除與指定組件相關的約束。 |
void | ViewportLayout.removeLayoutComponent(Component c) 從布局中移除指定組件。 |
void | ScrollPaneLayout.removeLayoutComponent(Component c) 從布局中移除指定的組件。 |
void | BoxLayout.removeLayoutComponent(Component comp) 此類不使用。 |
void | JRootPane.RootLayout.removeLayoutComponent(Component comp) |
void | GroupLayout.replace(Component existingComponent, Component newComponent) 使用新的組件替代現有組件。 |
void | JSplitPane.setBottomComponent(Component comp) 將組件設置到分隔條的下面或者右邊。 |
void | JScrollPane.setColumnHeaderView(Component view) 創建一個列標題視口(如果有必要),設置其視圖然後將此列標題視口添加到滾動窗格。 |
void | JTabbedPane.setComponentAt(int index, Component component) 將 index 位置的組件設置為 component 。 |
void | JDesktopPane.setComponentZOrder(Component comp, int index) 將指定組件移動到容器中指定的 z 順序索引。 |
void | JScrollPane.setCorner(String key, Component corner) 添加一個將顯示在一個滾動窗格角中的子級,如果有空間的話。 |
void | JApplet.setGlassPane(Component glassPane) 設置 glassPane 屬性。 |
void | JWindow.setGlassPane(Component glassPane) 設置 glassPane 屬性。 |
void | JDialog.setGlassPane(Component glassPane) 設置 glassPane 屬性。 |
void | JInternalFrame.setGlassPane(Component glass) 設置此 JInternalFrame 的 glassPane 屬性。 |
void | JRootPane.setGlassPane(Component glass) 將指定的 Component 設置為此根窗格的玻璃窗格。 |
void | JFrame.setGlassPane(Component glassPane) 設置 glassPane 屬性。 |
void | RootPaneContainer.setGlassPane(Component glassPane) glassPane 始終為 rootPane 的第一個子組件,rootPanes 布局管理器確保它始終與 rootPane 一樣大。 |
void | GroupLayout.setHonorsVisibility(Component component, Boolean honorsVisibility) 設置確定組件的大小和位置時是否要考慮組件的可見性。 |
void | JPopupMenu.setInvoker(Component invoker) 設置此彈出菜單的調用者,即彈出菜單在其中顯示的組件。 |
void | JLabel.setLabelFor(Component c) 設置要添加標籤的組件。 |
void | JLayeredPane.setLayer(Component c, int layer) 設置指定組件的 layer 屬性,使之成為該層中最底部的組件。 |
void | JLayeredPane.setLayer(Component c, int layer, int position) 為指定組件設置 layer 屬性,並設置它在該層中的位置。 |
void | JSplitPane.setLeftComponent(Component comp) 將組件設置到分隔條的左邊(或上面)。 |
void | JComponent.setNextFocusableComponent(Component aComponent) 已過時。 從 1.4 版本開始,由 FocusTraversalPolicy 取代 |
void | JLayeredPane.setPosition(Component c, int position) 將該組件移到當前層中的 position 處,其中 0 表示該層中的最頂層位置,-1 表示最底層位置。 |
void | JSplitPane.setRightComponent(Component comp) 將組件設置到分隔條的右邊(或者下面)。 |
void | JScrollPane.setRowHeaderView(Component view) 創建一個行標題視口(如果有必要),設置其視圖然後將此行標題視口添加到滾動窗格。 |
void | JPopupMenu.setSelected(Component sel) 設置當前選擇的組件,此方法將更改選擇模型。 |
void | JMenuBar.setSelected(Component sel) 設置當前選擇的組件,更改選擇模型。 |
void | JTabbedPane.setSelectedComponent(Component c) 設置此選項卡窗格的已選組件。 |
void | JTabbedPane.setTabComponentAt(int index, Component component) 設置負責呈現指定選項卡標題的組件。 |
void | JSplitPane.setTopComponent(Component comp) 將組件設置到分隔條的上面或者左邊。 |
void | JViewport.setView(Component view) 設置 JViewport 的一個輕量子對象 (view ),可以為 null 。 |
void | JScrollPane.setViewportView(Component view) 創建一個視口(如果有必要)並設置其視圖。 |
void | JPopupMenu.show(Component invoker, int x, int y) 在組件調用者的坐標空間中的位置 X、Y 顯示彈出菜單。 |
static int | JOptionPane.showConfirmDialog(Component parentComponent, Object message) 調出帶有選項 Yes、No 和 Cancel 的對話框;標題為 Select an Option。 |
static int | JOptionPane.showConfirmDialog(Component parentComponent, Object message, String title, int optionType) 調出一個由 optionType 參數確定其中選項數的對話框。 |
static int | JOptionPane.showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType) 調用一個由 optionType 參數確定其中選項數的對話框,messageType 參數確定要顯示的圖標。 |
static int | JOptionPane.showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon) 調出一個帶有指定圖標的對話框,其中的選項數由 optionType 參數確定。 |
int | JFileChooser.showDialog(Component parent, String approveButtonText) 彈出具有自定義 approve 按鈕的自定義文件選擇器對話框。 |
static Color | JColorChooser.showDialog(Component component, String title, Color initialColor) 顯示有模式的顏色選取器,在隱藏對話框之前一直阻塞。 |
static String | JOptionPane.showInputDialog(Component parentComponent, Object message) 顯示請求用戶輸入內容的問題消息對話框,它以 parentComponent 為父級。 |
static String | JOptionPane.showInputDialog(Component parentComponent, Object message, Object initialSelectionValue) 顯示請求用戶輸入內容的問題消息對話框,它以 parentComponent 為父級。 |
static String | JOptionPane.showInputDialog(Component parentComponent, Object message, String title, int messageType) 顯示請求用戶輸入內容的對話框,它以 parentComponent 為父級,該對話框的標題為 title ,消息類型為 messageType 。 |
static Object | JOptionPane.showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue) 提示用戶在可以指定初始選擇、可能選擇及其他所有選項的模塊化的對話框中輸入內容。 |
static int | JOptionPane.showInternalConfirmDialog(Component parentComponent, Object message) 調出帶有選項 Yes、No 和 Cancel 的內部對話框面板;標題為 Select an Option。 |
static int | JOptionPane.showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType) 調出一個由 optionType 參數確定其中選項數的內部對話框面板。 |
static int | JOptionPane.showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType) 調出一個由 optionType 參數確定其中選項數的內部對話框面板,messageType 參數確定要顯示的圖標。 |
static int | JOptionPane.showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon) 調出一個帶有指定圖標的內部對話框面板,其中的選項數由 optionType 參數確定。 |
static String | JOptionPane.showInternalInputDialog(Component parentComponent, Object message) 顯示請求用戶輸入內容的內部問題消息對話框,它以 parentComponent 為父級。 |
static String | JOptionPane.showInternalInputDialog(Component parentComponent, Object message, String title, int messageType) 顯示請求用戶輸入內容的內部對話框,它以 parentComponent 為父級。 |
static Object | JOptionPane.showInternalInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue) 提示用戶在可以指定初始選擇、可能選擇及其他所有選項的模塊化的內部對話框中輸入內容。 |
static void | JOptionPane.showInternalMessageDialog(Component parentComponent, Object message) 調出內部確認對話框面板。 |
static void | JOptionPane.showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType) 調出一個顯示消息的內部對話框面板,它使用由 messageType 參數確定的默認圖標。 |
static void | JOptionPane.showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon) 調出一個顯示消息的內部對話框面板,為其指定了所有參數。 |
static int | JOptionPane.showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) 調出一個帶有指定圖標的內部對話框面板,其中的初始選擇由 initialValue 參數確定,選項數由 optionType 參數確定。 |
static void | JOptionPane.showMessageDialog(Component parentComponent, Object message) 調出標題為 "Message" 的信息消息對話框。 |
static void | JOptionPane.showMessageDialog(Component parentComponent, Object message, String title, int messageType) 調出對話框,它顯示使用由 messageType 參數確定的默認圖標的 message。 |
static void | JOptionPane.showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon) 調出一個顯示信息的對話框,為其指定了所有參數。 |
int | JFileChooser.showOpenDialog(Component parent) 彈出一個 "Open File" 文件選擇器對話框。 |
static int | JOptionPane.showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) 調出一個帶有指定圖標的對話框,其中的初始選擇由 initialValue 參數確定,選項數由 optionType 參數確定。 |
int | JFileChooser.showSaveDialog(Component parent) 彈出一個 "Save File" 文件選擇器對話框。 |
static void | SwingUtilities.updateComponentTreeUI(Component c) 簡單的外觀更改:將樹結構中的每個節點轉到 updateUI() -- 也就是說,通過當前外觀初始化其 UI 屬性。 |
static Spring | Spring.width(Component c) 返回一個 spring,其 minimum、preferred、maximum 和 value 屬性由所提供組件的 minimumSize、preferredSize、maximumSize 和 size 屬性的寬度定義。 |
static Window | SwingUtilities.windowForComponent(Component c) 返回 c 的第一個 Window 祖先;如果 c 未包含在 Window 內,則返回 null 。 |
參數類型為 Component 的 javax.swing.border 中的方法 | |
---|---|
int | TitledBorder.getBaseline(Component c, int width, int height) 返回基線。 |
int | AbstractBorder.getBaseline(Component c, int width, int height) 返回基線。 |
Component.BaselineResizeBehavior | TitledBorder.getBaselineResizeBehavior(Component c) 返回一個枚舉,指示該邊框的基線如何隨大小的改變而發生更改。 |
Component.BaselineResizeBehavior | AbstractBorder.getBaselineResizeBehavior(Component c) 返回一個枚舉,指示組件的基線如何隨大小的改變而發生更改。 |
Insets | SoftBevelBorder.getBorderInsets(Component c) 返回邊框的 insets。 |
Insets | TitledBorder.getBorderInsets(Component c) 返回邊框的 insets。 |
Insets | BevelBorder.getBorderInsets(Component c) 返回邊框的 insets。 |
Insets | EtchedBorder.getBorderInsets(Component c) 返回邊框的 insets |
Insets | LineBorder.getBorderInsets(Component c) 返回邊框的 insets。 |
Insets | MatteBorder.getBorderInsets(Component c) 返回邊框的 insets。 |
Insets | CompoundBorder.getBorderInsets(Component c) 返回複合邊框的 insets,它是外部邊框的 insets 與內部邊框的 insets 相加所得的結果。 |
Insets | EmptyBorder.getBorderInsets(Component c) 返回此邊框的 insets |
Insets | AbstractBorder.getBorderInsets(Component c) 此默認實現返回一個新的 Insets 實例,其中 top 、left 、bottom 和 right 欄位都設置成了 0 。 |
Insets | Border.getBorderInsets(Component c) 返回該邊框的 insets。 |
Insets | SoftBevelBorder.getBorderInsets(Component c, Insets insets) 用此邊框的當前 Insets 重新初始化 insets 參數。 |
Insets | TitledBorder.getBorderInsets(Component c, Insets insets) 用此邊框的當前 Insets 重新初始化 insets 參數。 |
Insets | BevelBorder.getBorderInsets(Component c, Insets insets) 用此邊框的當前 Insets 重新初始化 insets 參數。 |
Insets | EtchedBorder.getBorderInsets(Component c, Insets insets) 用此邊框的當前 Insets 重新初始化 insets 參數 |
Insets | LineBorder.getBorderInsets(Component c, Insets insets) 用此邊框的當前 Insets 重新初始化 insets 參數。 |
Insets | MatteBorder.getBorderInsets(Component c, Insets insets) 用此邊框的當前 Insets 重新初始化 insets 參數。 |
Insets | CompoundBorder.getBorderInsets(Component c, Insets insets) 用此邊框的當前 Insets 重新初始化 insets 參數。 |
Insets | EmptyBorder.getBorderInsets(Component c, Insets insets) 用此邊框的當前 Insets 重新初始化 insets 參數 |
Insets | AbstractBorder.getBorderInsets(Component c, Insets insets) 用此邊框的當前 Insets 重新初始化 insets 參數。 |
protected Font | TitledBorder.getFont(Component c) |
Color | EtchedBorder.getHighlightColor(Component c) 返回浮雕化邊框在指定組件上呈現的高亮顯示顏色。 |
Color | BevelBorder.getHighlightInnerColor(Component c) 返回斜面邊框在指定組件上呈現的內部高亮顯示顏色。 |
Color | BevelBorder.getHighlightOuterColor(Component c) 返回斜面邊框在指定組件上呈現的外部高亮顯示顏色。 |
static Rectangle | AbstractBorder.getInteriorRectangle(Component c, Border b, int x, int y, int width, int height) 返回一個用所給的參數減去邊框 insets 得到的矩形。 |
Rectangle | AbstractBorder.getInteriorRectangle(Component c, int x, int y, int width, int height) 此便捷方法調用靜態方法。 |
Dimension | TitledBorder.getMinimumSize(Component c) 返回此邊框完全顯示邊框和標題所需的最小大小。 |
Color | EtchedBorder.getShadowColor(Component c) 返回浮雕化邊框在指定組件上呈現的陰影顏色。 |
Color | BevelBorder.getShadowInnerColor(Component c) 返回斜面邊框在指定組件上呈現的內部陰影顏色。 |
Color | BevelBorder.getShadowOuterColor(Component c) 返回斜面邊框在指定組件上呈現的外部陰影顏色。 |
void | SoftBevelBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) 按照指定的位置和尺寸繪製指定組件的邊框。 |
void | TitledBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) 按照指定的位置和大小為指定的組件繪製邊框。 |
void | BevelBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) 按指定的位置和尺寸繪製指定組件的邊框。 |
void | EtchedBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) 按照指定的位置和尺寸為指定的組件繪製邊框 |
void | LineBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) 按照指定的位置和尺寸為指定的組件繪製邊框。 |
void | MatteBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) 繪製襯邊邊框。 |
void | CompoundBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) 繪製組合邊框,方法是先按指定的位置和尺寸繪製外部邊框,然後按照外部邊框 insets 指定的位置和尺寸偏移量繪製內部邊框。 |
void | EmptyBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) 默認情況下不執行繪製。 |
void | AbstractBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) 此默認實現不執行繪製操作。 |
void | Border.paintBorder(Component c, Graphics g, int x, int y, int width, int height) 按指定的位置和尺寸繪製指定組件的邊框。 |
protected void | BevelBorder.paintLoweredBevel(Component c, Graphics g, int x, int y, int width, int height) |
protected void | BevelBorder.paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height) |
參數類型為 Component 的 javax.swing.plaf.basic 中的方法 | |
---|---|
void | BasicSplitPaneUI.BasicHorizontalLayoutManager.addLayoutComponent(Component comp, Object constraints) 使用指定的約束對象將指定組件添加到布局中。 |
void | BasicInternalFrameTitlePane.TitlePaneLayout.addLayoutComponent(String name, Component c) |
void | BasicInternalFrameUI.InternalFrameLayout.addLayoutComponent(String name, Component c) |
void | BasicOptionPaneUI.ButtonAreaLayout.addLayoutComponent(String string, Component comp) |
void | BasicSplitPaneDivider.DividerLayout.addLayoutComponent(String string, Component c) |
void | BasicSplitPaneUI.BasicHorizontalLayoutManager.addLayoutComponent(String place, Component component) 在 place 位置添加組件。 |
void | BasicTabbedPaneUI.TabbedPaneLayout.addLayoutComponent(String name, Component comp) |
void | BasicComboBoxUI.ComboBoxLayoutManager.addLayoutComponent(String name, Component comp) |
void | BasicScrollBarUI.addLayoutComponent(String name, Component child) |
boolean | BasicToolBarUI.canDock(Component c, Point p) |
protected void | BasicTreeUI.drawCentered(Component c, Graphics graphics, Icon icon, int x, int y) |
Insets | BasicBorders.ButtonBorder.getBorderInsets(Component c) |
Insets | BasicBorders.ToggleButtonBorder.getBorderInsets(Component c) |
Insets | BasicBorders.RadioButtonBorder.getBorderInsets(Component c) |
Insets | BasicBorders.MenuBarBorder.getBorderInsets(Component c) |
Insets | BasicBorders.MarginBorder.getBorderInsets(Component c) |
Insets | BasicBorders.FieldBorder.getBorderInsets(Component c) |
Insets | BasicBorders.SplitPaneBorder.getBorderInsets(Component c) |
Insets | BasicBorders.ButtonBorder.getBorderInsets(Component c, Insets insets) |
Insets | BasicBorders.ToggleButtonBorder.getBorderInsets(Component c, Insets insets) |
Insets | BasicBorders.RadioButtonBorder.getBorderInsets(Component c, Insets insets) |
Insets | BasicBorders.MenuBarBorder.getBorderInsets(Component c, Insets insets) |
Insets | BasicBorders.MarginBorder.getBorderInsets(Component c, Insets insets) |
Insets | BasicBorders.FieldBorder.getBorderInsets(Component c, Insets insets) |
protected int | BasicSplitPaneUI.BasicHorizontalLayoutManager.getPreferredSizeOfComponent(Component c) 返回傳入 Component 的首選大小的寬度。 |
protected int | BasicSplitPaneUI.BasicHorizontalLayoutManager.getSizeOfComponent(Component c) 返回傳入組件的寬度。 |
protected void | BasicSpinnerUI.installNextButtonListeners(Component c) 在下一個按鈕( c )上安裝必要的偵聽器以更新 JSpinner 來響應用戶動作。 |
protected void | BasicSpinnerUI.installPreviousButtonListeners(Component c) 在上一個按鈕( c )上安裝必要的偵聽器以更新 JSpinner 來響應用戶動作。 |
void | BasicBorders.RolloverButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | BasicBorders.ButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
void | BasicBorders.ToggleButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
void | BasicBorders.RadioButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
void | BasicBorders.MenuBarBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
void | BasicBorders.FieldBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
void | BasicBorders.SplitPaneBorder.paintBorder(Component c, Graphics g, int x, int y, int width, int height) |
protected void | BasicSliderUI.paintHorizontalLabel(Graphics g, int value, Component label) 為標籤表中的每個標籤調用此方法。 |
protected void | BasicSliderUI.paintVerticalLabel(Graphics g, int value, Component label) 為標籤表中的每個標籤調用此方法。 |
void | BasicInternalFrameTitlePane.TitlePaneLayout.removeLayoutComponent(Component c) |
void | BasicInternalFrameUI.InternalFrameLayout.removeLayoutComponent(Component c) |
void | BasicOptionPaneUI.ButtonAreaLayout.removeLayoutComponent(Component c) |
void | BasicSplitPaneDivider.DividerLayout.removeLayoutComponent(Component c) |
void | BasicSplitPaneUI.BasicHorizontalLayoutManager.removeLayoutComponent(Component component) 根據了解的情況移除指定的組件。 |
void | BasicTabbedPaneUI.TabbedPaneLayout.removeLayoutComponent(Component comp) |
void | BasicComboBoxUI.ComboBoxLayoutManager.removeLayoutComponent(Component comp) |
void | BasicScrollBarUI.removeLayoutComponent(Component child) |
protected void | BasicToolBarUI.setBorderToNonRollover(Component c) 將組件的邊框設置為具有由 createNonRolloverBorder 創建的翻轉邊框。 |
protected void | BasicToolBarUI.setBorderToNormal(Component c) 將組件的邊框設置為具有普通邊框。 |
protected void | BasicToolBarUI.setBorderToRollover(Component c) 將組件的邊框設置為具有由 createRolloverBorder 創建的翻轉邊框。 |
protected void | BasicSplitPaneUI.BasicHorizontalLayoutManager.setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize) 將組件 c 的寬度設置為 size(將其 x 的位置放置到 location),將 y 和高度分別設置為 insets.top 和 containersize.height 減去上下 insets。 |
protected void | BasicSplitPaneUI.setNonContinuousLayoutDivider(Component newDivider) 設置要在將 splitPane 配置為非連續布局時使用的分隔符。 |
protected void | BasicSplitPaneUI.setNonContinuousLayoutDivider(Component newDivider, boolean rememberSizes) 設置要使用的分隔符。 |
protected void | BasicTabbedPaneUI.setVisibleComponent(Component component) |
參數類型為 Component 的 javax.swing.plaf.metal 中的方法 | |
---|---|
protected void | MetalCheckBoxIcon.drawCheck(Component c, Graphics g, int x, int y) |
Insets | MetalBorders.Flush3DBorder.getBorderInsets(Component c) |
Insets | MetalBorders.ButtonBorder.getBorderInsets(Component c) |
Insets | MetalBorders.InternalFrameBorder.getBorderInsets(Component c) |
Insets | MetalBorders.PaletteBorder.getBorderInsets(Component c) |
Insets | MetalBorders.OptionDialogBorder.getBorderInsets(Component c) |
Insets | MetalBorders.MenuBarBorder.getBorderInsets(Component c) |
Insets | MetalBorders.MenuItemBorder.getBorderInsets(Component c) |
Insets | MetalBorders.PopupMenuBorder.getBorderInsets(Component c) |
Insets | MetalBorders.ToolBarBorder.getBorderInsets(Component c) |
Insets | MetalBorders.ScrollPaneBorder.getBorderInsets(Component c) |
Insets | MetalBorders.TableHeaderBorder.getBorderInsets(Component c) |
Insets | MetalBorders.Flush3DBorder.getBorderInsets(Component c, Insets newInsets) |
Insets | MetalBorders.ButtonBorder.getBorderInsets(Component c, Insets newInsets) |
Insets | MetalBorders.InternalFrameBorder.getBorderInsets(Component c, Insets newInsets) |
Insets | MetalBorders.PaletteBorder.getBorderInsets(Component c, Insets newInsets) |
Insets | MetalBorders.OptionDialogBorder.getBorderInsets(Component c, Insets newInsets) |
Insets | MetalBorders.MenuBarBorder.getBorderInsets(Component c, Insets newInsets) |
Insets | MetalBorders.MenuItemBorder.getBorderInsets(Component c, Insets newInsets) |
Insets | MetalBorders.PopupMenuBorder.getBorderInsets(Component c, Insets newInsets) |
Insets | MetalBorders.ToolBarBorder.getBorderInsets(Component c, Insets newInsets) |
void | MetalBorders.Flush3DBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | MetalBorders.ButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | MetalBorders.InternalFrameBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | MetalBorders.PaletteBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | MetalBorders.OptionDialogBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | MetalBorders.MenuBarBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | MetalBorders.MenuItemBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | MetalBorders.PopupMenuBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | MetalBorders.RolloverButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | MetalBorders.ToolBarBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | MetalBorders.TextFieldBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | MetalBorders.ScrollPaneBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | MetalBorders.ToggleButtonBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | MetalBorders.TableHeaderBorder.paintBorder(Component c, Graphics g, int x, int y, int w, int h) |
void | MetalCheckBoxIcon.paintIcon(Component c, Graphics g, int x, int y) |
void | MetalComboBoxIcon.paintIcon(Component c, Graphics g, int x, int y) 繪製 MetalComboBox 的水平條 |
void | MetalIconFactory.PaletteCloseIcon.paintIcon(Component c, Graphics g, int x, int y) |
void | MetalIconFactory.FolderIcon16.paintIcon(Component c, Graphics g, int x, int y) |
void | MetalIconFactory.FileIcon16.paintIcon(Component c, Graphics g, int x, int y) |
void | MetalIconFactory.TreeControlIcon.paintIcon(Component c, Graphics g, int x, int y) |
void | MetalIconFactory.TreeControlIcon.paintMe(Component c, Graphics g, int x, int y) |
void | MetalLookAndFeel.provideErrorFeedback(Component component) 在用戶嘗試一個無效操作時調用,例如,在具有焦點的不可編輯的 JTextField 中進行粘貼。 |
protected void | MetalToolBarUI.setBorderToNonRollover(Component c) |