- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JInternalFrame
-
- 实现的所有接口
-
ImageObserver,MenuContainer,Serializable,Accessible,RootPaneContainer,WindowConstants
@JavaBean(defaultProperty="JMenuBar", description="A frame container which is contained within another window.") public class JInternalFrame extends JComponent implements Accessible, WindowConstants, RootPaneContainer
一个轻量级对象,提供本机框架的许多功能,包括拖动,关闭,成为图标,调整大小,标题显示以及支持菜单栏。 有关面向任务的文档和使用内部框架的示例,请参阅“Java教程”中的 How to Use Internal Frames部分。通常,您将
JInternalFrames添加到JDesktopPane。 该UI委托的外观和感觉,具体行动到DesktopManager由维护对象JDesktopPane。您可以在
JInternalFrame内容窗格中添加子组件。 作为一种方便,add,remove和setLayout这一类的方法将被覆盖,所以他们委托给相应方法的调用ContentPane。 例如,您可以将子组件添加到内部框架,如下所示:internalFrame.add(child);并且孩子将被添加到contentPane。 内容窗格实际上由JRootPane的实例管理,该实例还管理内部框架的布局窗格,玻璃窗格和可选菜单栏。 有关这些组件的完整说明,请参阅JRootPane文档。 有关添加,删除和设置LayoutManager的LayoutManager的详细信息,请参阅JInternalFrame。警告: Swing不是线程安全的。 有关更多信息,请参阅Swing's Threading Policy 。
警告:此类的序列化对象与以后的Swing版本不兼容。 当前的序列化支持适用于运行相同版本Swing的应用程序之间的短期存储或RMI。 从1.4开始,
java.beans软件包中添加了对所有JavaBeansjava.beans长期存储的支持。 请参阅XMLEncoder。- 从以下版本开始:
- 1.2
- 另请参见:
-
InternalFrameEvent,JDesktopPane,DesktopManager,JInternalFrame.JDesktopIcon,JRootPane,RootPaneContainer, Serialized Form
-
-
嵌套类汇总
嵌套类 变量和类型 类 描述 protected classJInternalFrame.AccessibleJInternalFrame此类实现JInternalFrame类的可访问性支持。static classJInternalFrame.JDesktopIcon该组件代表JInternalFrame的图标化版本。-
嵌套类/接口声明在类 javax.swing.JComponent
JComponent.AccessibleJComponent
-
嵌套类/接口声明在类 java.awt.Container
Container.AccessibleAWTContainer
-
-
字段汇总
字段 变量和类型 字段 描述 protected booleanclosable框架可以关闭。static StringCONTENT_PANE_PROPERTY绑定属性名称。protected JInternalFrame.JDesktopIcondesktopIcon此内部框架图标化时显示的图标。static StringFRAME_ICON_PROPERTY绑定属性名称。protected IconframeIcon此内部框架左上角显示的图标。static StringGLASS_PANE_PROPERTY绑定属性名称。protected booleaniconable框架可以“图标化”(缩小并显示为图标图像)。static StringIS_CLOSED_PROPERTY约束属性名称,表示内部框架已关闭。static StringIS_ICON_PROPERTY约束属性名称,指示内部框架已图标化。static StringIS_MAXIMUM_PROPERTY约束属性名称,指示内部框架已最大化。static StringIS_SELECTED_PROPERTY约束属性名称表示此框架已选择状态。protected booleanisClosed框架已关闭。protected booleanisIcon框架已图标化。protected booleanisMaximum框架已扩展到最大尺寸。protected booleanisSelected框架当前已被选中。static StringLAYERED_PANE_PROPERTY绑定属性名称。protected booleanmaximizable框架可以扩展到桌面窗格的大小。static StringMENU_BAR_PROPERTY绑定属性名称。protected booleanresizable框架的大小可以更改。static StringROOT_PANE_PROPERTY绑定属性名称。protected JRootPanerootPaneJRootPane实例,用于管理此内部框架的内容窗格和可选菜单栏,以及玻璃窗格。protected booleanrootPaneCheckingEnabled如果为true,则拨打add和setLayout电话将转发至contentPane。protected Stringtitle标题栏显示在此内部框架的标题栏中。static StringTITLE_PROPERTY绑定属性名称。-
声明的属性在类 javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
声明的属性在类 java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields declared in interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Fields declared in interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
-
-
构造方法摘要
构造方法 构造器 描述 JInternalFrame()创建一个不可调整大小,不可关闭,不可最大化,不可图标化的JInternalFrame,没有标题。JInternalFrame(String title)创建具有指定标题的不可调整大小,不可关闭,不可最大化,不可图标化的JInternalFrame。JInternalFrame(String title, boolean resizable)创建一个具有指定标题和可调整性的不可关闭,不可最大化,不可图标化的JInternalFrame。JInternalFrame(String title, boolean resizable, boolean closable)创建具有指定标题,可调整性和可关闭性的不可最大化,不可图标JInternalFrame的JInternalFrame。JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable)使用指定的标题,可调整性,可关闭性和最大化创建不可图标化的JInternalFrame。JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)创建JInternalFrame具有指定标题,可调整,可关闭,可最大化和图标化。
-
方法摘要
所有方法 实例方法 具体的方法 弃用的方法 变量和类型 方法 描述 protected voidaddImpl(Component comp, Object constraints, int index)添加指定的子项Component。voidaddInternalFrameListener(InternalFrameListener l)添加指定的侦听器以从此内部帧接收内部帧事件。protected JRootPanecreateRootPane()由构造函数调用以设置JRootPane。voiddispose()使此内部框架不可见,未选中和关闭。voiddoDefaultCloseAction()触发INTERNAL_FRAME_CLOSING事件,然后执行内部框架默认关闭操作指定的操作。protected voidfireInternalFrameEvent(int id)触发内部帧事件。AccessibleContextgetAccessibleContext()获取与AccessibleContext相关的JInternalFrame。ContainergetContentPane()返回此内部框架的内容窗格。intgetDefaultCloseOperation()返回用户在此内部框架上启动“关闭”时发生的默认操作。JInternalFrame.JDesktopIcongetDesktopIcon()返回JDesktopIcon时,这个曾经JInternalFrame图标化。JDesktopPanegetDesktopPane()在祖先层次结构中搜索JDesktop实例的便捷方法。ContainergetFocusCycleRootAncestor()始终返回null因为JInternalFrame必须始终是焦点遍历循环的根。ComponentgetFocusOwner()如果此JInternalFrame处于活动状态,则返回具有焦点的子项。IcongetFrameIcon()返回此内部框架标题栏中显示的图像(通常位于左上角)。ComponentgetGlassPane()返回此内部框架的玻璃窗格。InternalFrameListener[]getInternalFrameListeners()返回InternalFrameListeners的所有InternalFrameListener的数组,JInternalFrame包含addInternalFrameListener。JMenuBargetJMenuBar()如果没有设置菜单栏,则返回此JInternalFrame的当前JMenuBar或null。CursorgetLastCursor()返回由setCursor方法设置的最后一个Cursor,该方法不是可调整大小的Cursor。intgetLayer()获取该组件的图层属性的便捷方法。JLayeredPanegetLayeredPane()返回此内部框架的分层窗格。JMenuBargetMenuBar()已过时。截至Swing版本1.0.3,由getJMenuBar()取代。ComponentgetMostRecentFocusOwner()返回此JInternalFrame的子组件,该组件将在选择此JInternalFrame时获得焦点。RectanglegetNormalBounds()如果JInternalFrame未处于最大化状态,则返回getBounds(); 否则,返回JInternalFrame将恢复到的边界。JRootPanegetRootPane()返回此内部框架的rootPane对象。StringgetTitle()返回JInternalFrame的标题。InternalFrameUIgetUI()返回呈现此组件的外观对象。StringgetUIClassID()返回呈现此组件的look-and-feel类的名称。StringgetWarningString()获取与此内部框架一起显示的警告字符串。booleanisClosable()返回是否可以通过某些用户操作关闭此JInternalFrame。booleanisClosed()返回此JInternalFrame当前是关闭的。booleanisFocusCycleRoot()始终返回true因为所有JInternalFrame必须是焦点遍历循环的根。booleanisIcon()返回JInternalFrame当前是否已图标化。booleanisIconifiable()获取iconable属性,默认为false。booleanisMaximizable()获取maximizable属性的值。booleanisMaximum()返回JInternalFrame当前是否已最大化。booleanisResizable()返回是否可以通过某些用户操作调整JInternalFrame大小。protected booleanisRootPaneCheckingEnabled()返回对add和setLayout调用是否转发到contentPane。booleanisSelected()返回JInternalFrame是当前“选定”还是活动帧。voidmoveToBack()如果父组件为JLayeredPane,则将此组件移动到位置-1的便捷方法。voidmoveToFront()如果父组件为JLayeredPane,则将此组件移动到位置0的便捷方法。voidpack()导致此JInternalFrame子组件以其首选大小布局。protected voidpaintComponent(Graphics g)在拖动内部框架时,重写以允许优化绘制。protected StringparamString()返回此JInternalFrame的字符串表示JInternalFrame。voidremove(Component comp)从容器中删除指定的组件。voidremoveInternalFrameListener(InternalFrameListener l)删除指定的内部框架侦听器,以便它不再从此内部框架接收内部框架事件。voidreshape(int x, int y, int width, int height)移动并调整此组件的大小。voidrestoreSubcomponentFocus()请求内部框架将焦点恢复到具有焦点的最后一个子组件。voidsetClosable(boolean b)设置是否可以通过某些用户操作关闭此JInternalFrame。voidsetClosed(boolean b)如果参数为true则关闭此内部框架。voidsetContentPane(Container c)设定此JInternalFrame的contentPane财产。voidsetCursor(Cursor cursor)将光标图像设置为指定的光标。voidsetDefaultCloseOperation(int operation)设置当用户在此内部框架上启动“关闭”时默认发生的操作。voidsetDesktopIcon(JInternalFrame.JDesktopIcon d)设置JDesktopIcon与此相关JInternalFrame。voidsetFocusCycleRoot(boolean focusCycleRoot)什么都没有,因为JInternalFrame必须始终是焦点遍历循环的根源。voidsetFrameIcon(Icon icon)设置要在此内部框架的标题栏中显示的图像(通常位于左上角)。voidsetGlassPane(Component glass)设置此JInternalFrame的glassPane属性。voidsetIcon(boolean b)如果外观支持图标化,则对此内部框架进行图标化或取消图标化。voidsetIconifiable(boolean b)设置iconable属性,该属性必须为true,以便用户能够使JInternalFrame成为图标。voidsetJMenuBar(JMenuBar m)为此JInternalFrame设置menuBar属性。voidsetLayer(int layer)设置此组件的图层属性的便捷方法。voidsetLayer(Integer layer)设置此组件的图层属性的便捷方法。voidsetLayeredPane(JLayeredPane layered)设置此JInternalFrame的layeredPane属性。voidsetLayout(LayoutManager manager)确保默认情况下不能设置此组件的布局。voidsetMaximizable(boolean b)设置maximizable属性,该属性确定是否可以通过某些用户操作最大化JInternalFrame。voidsetMaximum(boolean b)最大化并恢复此内部框架。voidsetMenuBar(JMenuBar m)已过时。截至Swing版本1.0.3由setJMenuBar(JMenuBar m)取代。voidsetNormalBounds(Rectangle r)设置此内部框架的正常边界,此内部框架将从其最大化状态恢复到的边界。voidsetResizable(boolean b)设置是否可以通过某些用户操作调整JInternalFrame大小。protected voidsetRootPane(JRootPane root)为此JInternalFrame设置rootPane属性。protected voidsetRootPaneCheckingEnabled(boolean enabled)设置对add和setLayout调用是否转发到contentPane。voidsetSelected(boolean selected)如果显示内部框架,则选择或取消选择内部框架。voidsetTitle(String title)设置JInternalFrame标题。voidsetUI(InternalFrameUI ui)设置此JInternalFrame的UI委托。voidshow()如果内部框架不可见,则将内部框架置于前面,使其可见,并尝试选择它。voidtoBack()将此内部框架发送到背面。voidtoFront()将这个内部框架带到前面。voidupdateUI()来自UIManager通知表明外观已经改变。-
声明方法的类 javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
-
声明方法的类 java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTree
-
声明方法的类 java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
字段详细信息
-
rootPane
protected JRootPane rootPane
JRootPane实例,用于管理此内部框架的内容窗格和可选菜单栏,以及玻璃窗格。- 另请参见:
-
JRootPane,RootPaneContainer
-
rootPaneCheckingEnabled
protected boolean rootPaneCheckingEnabled
如果为true,则对add和setLayout调用将被转发到contentPane。 这最初为false,但在构造JInternalFrame时设置为true。
-
closable
protected boolean closable
框架可以关闭。
-
isClosed
protected boolean isClosed
框架已关闭。
-
maximizable
protected boolean maximizable
框架可以扩展到桌面窗格的大小。
-
isMaximum
protected boolean isMaximum
框架已扩展到最大尺寸。- 另请参见:
-
maximizable
-
iconable
protected boolean iconable
框架可以“图标化”(缩小并显示为图标图像)。
-
isIcon
protected boolean isIcon
框架已图标化。- 另请参见:
-
isIcon()
-
resizable
protected boolean resizable
框架的大小可以更改。
-
isSelected
protected boolean isSelected
框架当前已被选中。
-
frameIcon
protected Icon frameIcon
此内部框架左上角显示的图标。
-
title
protected String title
标题栏显示在此内部框架的标题栏中。
-
desktopIcon
protected JInternalFrame.JDesktopIcon desktopIcon
此内部框架图标化时显示的图标。- 另请参见:
-
iconable
-
-
构造方法详细信息
-
JInternalFrame
public JInternalFrame()
创建一个不可调整大小,不可关闭,不可最大化,不可图标化的JInternalFrame,没有标题。
-
JInternalFrame
public JInternalFrame(String title)
创建具有指定标题的不可调整大小,不可关闭,不可最大化,不可图标化的JInternalFrame。 请注意,传入nulltitle导致未指定的行为,并可能导致异常。- 参数
-
title- 要在标题栏中显示的非nullString
-
JInternalFrame
public JInternalFrame(String title, boolean resizable)
使用指定的标题和可调整性创建不可关闭,不可最大化,不可图标化的JInternalFrame。- 参数
-
title- 要在标题栏中显示的String -
resizable- 如果是true,则可以调整内部框架的大小
-
JInternalFrame
public JInternalFrame(String title, boolean resizable, boolean closable)
使用指定的标题,可重新定义和可关闭性创建不可最大化,不可图标JInternalFrame的JInternalFrame。- 参数
-
title- 要在标题栏中显示的String -
resizable- 如果是true,则可以调整内部框架的大小 -
closable- 如果是true,则可以关闭内部框架
-
JInternalFrame
public JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable)
使用指定的标题,可调整性,可关闭性和最大化创建不可图标化的JInternalFrame。- 参数
-
title- 要在标题栏中显示的String -
resizable- 如果是true,则可以调整内部框架的大小 -
closable- 如果是true,则可以关闭内部框架 -
maximizable- 如果是true,则可以最大化内部框架
-
JInternalFrame
public JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
创建JInternalFrame具有指定标题,可调整,可关闭,可最大化和图标化。 所有JInternalFrame构造函数都使用此构造函数。- 参数
-
title- 要在标题栏中显示的String -
resizable- 如果是true,则可以调整内部框架的大小 -
closable- 如果是true,则可以关闭内部框架 -
maximizable- 如果是true,则可以最大化内部框架 -
iconifiable- 如果是true,则可以图标化内部框架
-
-
方法详细信息
-
createRootPane
protected JRootPane createRootPane()
由构造函数调用以设置JRootPane。- 结果
-
一个新的
JRootPane - 另请参见:
-
JRootPane
-
getUI
public InternalFrameUI getUI()
返回呈现此组件的外观对象。- 重写:
-
getUI类JComponent - 结果
-
呈现此组件的
InternalFrameUI对象
-
setUI
@BeanProperty(hidden=true, visualUpdate=true, description="The UI object that implements the Component\'s LookAndFeel.") public void setUI(InternalFrameUI ui)
设置此JInternalFrame的UI委托。- 参数
-
ui- UI委托
-
updateUI
public void updateUI()
来自UIManager通知表明外观已经改变。 使用UIManager的最新版本替换当前UI对象。- 重写:
-
updateUI课程JComponent - 另请参见:
-
JComponent.updateUI()
-
getUIClassID
@BeanProperty(bound=false, description="UIClassID") public String getUIClassID()
返回呈现此组件的look-and-feel类的名称。- 重写:
-
getUIClassID在类JComponent - 结果
- 字符串“InternalFrameUI”
- 另请参见:
-
JComponent.getUIClassID(),UIDefaults.getUI(javax.swing.JComponent)
-
isRootPaneCheckingEnabled
protected boolean isRootPaneCheckingEnabled()
返回对add和setLayout调用是否转发到contentPane。- 结果
-
如果转发
add和add,setLayouttrue; 否则是假的 - 另请参见:
-
addImpl(java.awt.Component, java.lang.Object, int),setLayout(java.awt.LayoutManager),setRootPaneCheckingEnabled(boolean),RootPaneContainer
-
setRootPaneCheckingEnabled
@BeanProperty(hidden=true, description="Whether the add and setLayout methods are forwarded") protected void setRootPaneCheckingEnabled(boolean enabled)
设置对add和setLayout调用是否转发到contentPane。- 参数
-
enabled- 如果转发add和add,setLayouttrue;如果它们应直接在JInternalFrame上运行,JInternalFrame。 - 另请参见:
-
addImpl(java.awt.Component, java.lang.Object, int),setLayout(java.awt.LayoutManager),isRootPaneCheckingEnabled(),RootPaneContainer
-
addImpl
protected void addImpl(Component comp, Object constraints, int index)
添加指定的子项Component。 重写此方法以有条件地转发对contentPane调用。 默认情况下,子项将添加到contentPane而不是帧中,有关详细信息,请参阅RootPaneContainer。- 重写:
-
addImpl在类Container - 参数
-
comp- 要增强的组件 -
constraints- 要遵守的约束 -
index- 索引 - 异常
-
IllegalArgumentException- 如果index无效 -
IllegalArgumentException- 如果将容器的父级添加到自身 -
IllegalArgumentException- 如果向容器添加窗口 - 另请参见:
-
setRootPaneCheckingEnabled(boolean),RootPaneContainer
-
remove
public void remove(Component comp)
从容器中删除指定的组件。 如果comp不是comp的子级,JInternalFrame将呼叫转发给contentPane。- 重写:
-
remove在类Container - 参数
-
comp- 要删除的组件 - 异常
-
NullPointerException- 如果comp为空 - 另请参见:
-
Container.add(java.awt.Component),RootPaneContainer
-
setLayout
public void setLayout(LayoutManager manager)
- 重写:
-
setLayout在类Container - 参数
-
manager-LayoutManager - 另请参见:
-
setRootPaneCheckingEnabled(boolean)
-
getMenuBar
@Deprecated public JMenuBar getMenuBar()
Deprecated.As of Swing version 1.0.3, replaced bygetJMenuBar().如果没有设置菜单栏,则返回此JInternalFrame的当前JMenuBar或null。- 结果
-
当前菜单栏,如果没有设置,
null
-
getJMenuBar
public JMenuBar getJMenuBar()
返回当前JMenuBar这个JInternalFrame,或null如果没有菜单栏已设置。- 结果
-
此内部框架使用的
JMenuBar - 另请参见:
-
setJMenuBar(javax.swing.JMenuBar)
-
setMenuBar
@Deprecated public void setMenuBar(JMenuBar m)
Deprecated.As of Swing version 1.0.3 replaced bysetJMenuBar(JMenuBar m).为此JInternalFrame设置menuBar属性。- 参数
-
m- 在此内部框架中使用的JMenuBar - 另请参见:
-
getJMenuBar()
-
setJMenuBar
@BeanProperty(preferred=true, description="The menu bar for accessing pulldown menus from this internal frame.") public void setJMenuBar(JMenuBar m)
设置此JInternalFrame的menuBar属性。- 参数
-
m- 在此内部框架中使用的JMenuBar - 另请参见:
-
getJMenuBar()
-
getContentPane
public Container getContentPane()
返回此内部框架的内容窗格。- Specified by:
-
getContentPane在接口RootPaneContainer - 结果
- 内容窗格
- 另请参见:
-
RootPaneContainer.setContentPane(java.awt.Container)
-
setContentPane
@BeanProperty(hidden=true, description="The client area of the internal frame where child components are normally inserted.") public void setContentPane(Container c)
设置此JInternalFrame的contentPane属性。- Specified by:
-
setContentPane,界面RootPaneContainer - 参数
-
c- 此内部框架的内容窗格 - 异常
-
IllegalComponentStateException- (运行时异常),如果内容窗格参数为null - 另请参见:
-
RootPaneContainer.getContentPane()
-
getLayeredPane
public JLayeredPane getLayeredPane()
返回此内部框架的分层窗格。- Specified by:
-
getLayeredPane在接口RootPaneContainer - 结果
-
一个
JLayeredPane对象 - 另请参见:
-
RootPaneContainer.setLayeredPane(javax.swing.JLayeredPane),RootPaneContainer.getLayeredPane()
-
setLayeredPane
@BeanProperty(hidden=true, description="The pane which holds the various desktop layers.") public void setLayeredPane(JLayeredPane layered)
JInternalFrame的layeredPane。- Specified by:
-
setLayeredPane在界面RootPaneContainer - 参数
-
layered- 此内部框架的JLayeredPane - 异常
-
IllegalComponentStateException- (运行时异常),如果分层窗格参数为null - 另请参见:
-
RootPaneContainer.setLayeredPane(javax.swing.JLayeredPane)
-
getGlassPane
public Component getGlassPane()
返回此内部框架的玻璃窗格。- Specified by:
-
getGlassPane在接口RootPaneContainer - 结果
- 玻璃窗格
- 另请参见:
-
RootPaneContainer.setGlassPane(java.awt.Component)
-
setGlassPane
@BeanProperty(hidden=true, description="A transparent pane used for menu rendering.") public void setGlassPane(Component glass)
设置此JInternalFrame的glassPane属性。- Specified by:
-
setGlassPane在接口RootPaneContainer - 参数
-
glass- 此内部框架的玻璃窗格 - 另请参见:
-
RootPaneContainer.getGlassPane()
-
getRootPane
@BeanProperty(hidden=true, description="The root pane used by this internal frame.") public JRootPane getRootPane()
返回此内部框架的rootPane对象。- Specified by:
-
getRootPane在界面RootPaneContainer - 重写:
-
getRootPane,类JComponent - 结果
-
rootPane属性 - 另请参见:
-
RootPaneContainer.getRootPane()
-
setRootPane
protected void setRootPane(JRootPane root)
设置此JInternalFrame的rootPane属性。 构造函数调用此方法。- 参数
-
root- 新的JRootPane对象
-
setClosable
@BeanProperty(preferred=true, description="Indicates whether this internal frame can be closed.") public void setClosable(boolean b)
设置是否可以通过某些用户操作关闭此JInternalFrame。- 参数
-
b- 布尔值,其中true表示可以关闭此内部框架
-
isClosable
public boolean isClosable()
返回是否可以通过某些用户操作关闭此JInternalFrame。- 结果
-
true是否可以关闭此内部框架
-
isClosed
public boolean isClosed()
返回此JInternalFrame当前是关闭的。- 结果
-
true如果此内部框架已关闭,false
-
setClosed
@BeanProperty(description="Indicates whether this internal frame has been closed.") public void setClosed(boolean b) throws PropertyVetoException
如果参数为true则关闭此内部框架。 不要使用false参数调用此方法; 调用setClosed(false)的结果未指定。如果内部框架已经关闭,则此方法不执行任何操作并立即返回。 否则,此方法首先触发
INTERNAL_FRAME_CLOSING事件。 然后,该方法将closed属性为true,除非侦听器禁止属性更改。 此方法通过使内部框架不可见和未选中,然后触发INTERNAL_FRAME_CLOSED事件来完成。注意:要重用已关闭的内部框架,必须将其添加到容器中(即使您从未将其从以前的容器中删除)。 通常,此容器将是先前包含内部框架的
JDesktopPane。- 参数
-
b- 必须是true - 异常
-
PropertyVetoException- 当设置该属性的尝试被JInternalFrame否决时 - 另请参见:
-
isClosed(),setDefaultCloseOperation(int),dispose(),InternalFrameEvent.INTERNAL_FRAME_CLOSING
-
setResizable
@BeanProperty(preferred=true, description="Determines whether this internal frame can be resized by the user.") public void setResizable(boolean b)
设置是否可以通过某些用户操作调整JInternalFrame大小。- 参数
-
b- 布尔值,其中true表示可以调整此内部框架的大小
-
isResizable
public boolean isResizable()
返回是否可以通过某些用户操作调整JInternalFrame大小。- 结果
-
true如果可以调整此内部框架的大小,false
-
setIconifiable
@BeanProperty(preferred=true, description="Determines whether this internal frame can be iconified.") public void setIconifiable(boolean b)
设置iconable属性,该属性必须为true,以便用户能够使JInternalFrame成为图标。 一些外观可能无法实现图标化; 他们会忽略这个属性。- 参数
-
b- 布尔值,其中true表示此内部框架可以图标化
-
isIconifiable
public boolean isIconifiable()
获取iconable属性,默认为false。- 结果
-
iconable属性的值。 - 另请参见:
-
setIconifiable(boolean)
-
isIcon
public boolean isIcon()
返回JInternalFrame当前是否已图标化。- 结果
-
true此内部框架是否已图标化
-
setIcon
@BeanProperty(description="The image displayed when this internal frame is minimized.") public void setIcon(boolean b) throws PropertyVetoException
如果外观支持图标化,则对此内部框架进行图标化或取消图标化。 如果内部框架的状态更改为图标化,则此方法将触发INTERNAL_FRAME_ICONIFIED事件。 如果状态更改为去图标化,则会触发INTERNAL_FRAME_DEICONIFIED事件。- 参数
-
b- 布尔值,其中true表示图标化此内部框架,false表示取消图标化 - 异常
-
PropertyVetoException- 当设置该属性的尝试被JInternalFrame否决时 - 另请参见:
-
InternalFrameEvent.INTERNAL_FRAME_ICONIFIED,InternalFrameEvent.INTERNAL_FRAME_DEICONIFIED
-
setMaximizable
@BeanProperty(preferred=true, description="Determines whether this internal frame can be maximized.") public void setMaximizable(boolean b)
设置maximizable属性,该属性确定是否可以通过某些用户操作最大化JInternalFrame。 一些外观可能不支持最大化内部框架; 他们会忽略这个属性。- 参数
-
b-true指定此内部框架应最大化;false指定它不应该
-
isMaximizable
public boolean isMaximizable()
获取maximizable属性的值。- 结果
-
maximizable属性的值 - 另请参见:
-
setMaximizable(boolean)
-
isMaximum
public boolean isMaximum()
返回JInternalFrame当前是否已最大化。- 结果
-
true如果此内部框架最大化,false
-
setMaximum
@BeanProperty(description="Indicates whether this internal frame is maximized.") public void setMaximum(boolean b) throws PropertyVetoException
最大化并恢复此内部框架。 甲最大化帧被调整大小以完全适应JDesktopPane与相关联的区域JInternalFrame。 恢复帧的大小设置为JInternalFrame的实际大小。- 参数
-
b- 布尔值,其中true最大化此内部框架,false恢复它 - 异常
-
PropertyVetoException- 当设置该属性的尝试被JInternalFrame否决时
-
getTitle
public String getTitle()
返回JInternalFrame的标题。- 结果
-
包含此内部框架标题的
String - 另请参见:
-
setTitle(java.lang.String)
-
setTitle
@BeanProperty(preferred=true, description="The text displayed in the title bar.") public void setTitle(String title)
设置JInternalFrame标题。title可以具有null值。- 参数
-
title- 要在标题栏中显示的String - 另请参见:
-
getTitle()
-
setSelected
@BeanProperty(description="Indicates whether this internal frame is currently the active frame.") public void setSelected(boolean selected) throws PropertyVetoException
如果显示内部框架,则选择或取消选择内部框架。 如果是选定的帧,则JInternalFrame通常以不同方式绘制其标题栏,这向用户指示该内部帧具有焦点。 当此方法将内部帧的状态从取消选择更改为选定时,它将触发InternalFrameEvent.INTERNAL_FRAME_ACTIVATED事件。 如果更改是从选定状态取消选择,则会触发InternalFrameEvent.INTERNAL_FRAME_DEACTIVATED事件。- 参数
-
selected- 布尔值,其中true表示此内部框架应该被选中(当前处于活动状态),false表示它应该被取消选择 - 异常
-
PropertyVetoException- 当设置属性的尝试被JInternalFrame否决时 - 另请参见:
-
Component.isShowing(),InternalFrameEvent.INTERNAL_FRAME_ACTIVATED,InternalFrameEvent.INTERNAL_FRAME_DEACTIVATED
-
isSelected
public boolean isSelected()
返回JInternalFrame是当前“已选择”还是活动帧。- 结果
-
true如果当前选择此内部框架(活动) - 另请参见:
-
setSelected(boolean)
-
setFrameIcon
@BeanProperty(description="The icon shown in the top-left corner of this internal frame.") public void setFrameIcon(Icon icon)
设置要在此内部框架的标题栏中显示的图像(通常位于左上角)。 某些外观可能不支持在标题栏中显示图标。 此图像不是desktopIcon对象,这是图标化此内部框架时JDesktop显示的图像。 将null传递给此函数是有效的,但外观可以为该情况选择适当的行为,例如不显示图标或外观的默认图标。- 参数
-
icon- 要在标题栏中显示的Icon - 另请参见:
-
getFrameIcon()
-
getFrameIcon
public Icon getFrameIcon()
返回此内部框架标题栏中显示的图像(通常位于左上角)。- 结果
-
Icon显示在标题栏中 - 另请参见:
-
setFrameIcon(javax.swing.Icon)
-
moveToFront
public void moveToFront()
如果父组件为JLayeredPane,则将此组件移动到位置0的便捷方法。
-
moveToBack
public void moveToBack()
如果父组件为JLayeredPane,则将此组件移动到位置-1的便捷方法。
-
getLastCursor
@BeanProperty(bound=false) public Cursor getLastCursor()
返回由setCursor方法设置的最后一个Cursor,该方法不是可调整大小的Cursor。- 结果
-
最后一个不可调整大小的
Cursor - 从以下版本开始:
- 1.6
-
setCursor
public void setCursor(Cursor cursor)
将光标图像设置为指定的光标。 当此组件的contains方法对当前光标位置返回true时,将显示此光标图像,并且此组件可见,可显示和启用。 设置Container的光标会导致该光标显示在所有容器的子组件中,但具有非null光标的子组件除外。如果Java平台实现和/或本机系统不支持改变鼠标光标形状,则该方法可能没有视觉效果。
- 重写:
-
setCursor类Component - 参数
-
cursor-Cursor类定义的常量Cursor; 如果此参数为null则此组件将继承其父级的游标 - 从以下版本开始:
- 1.6
- 另请参见:
-
Component.isEnabled(),Component.isShowing(),Component.getCursor(),Component.contains(int, int),Toolkit.createCustomCursor(java.awt.Image, java.awt.Point, java.lang.String),Cursor
-
setLayer
@BeanProperty(bound=false, expert=true, description="Specifies what desktop layer is used.") public void setLayer(Integer layer)
设置此组件的图层属性的便捷方法。- 参数
-
layer- 指定此框架桌面图层的Integer对象 - 异常
-
NullPointerException- 如果layer是null - 另请参见:
-
JLayeredPane
-
setLayer
@BeanProperty(bound=false, expert=true, description="Specifies what desktop layer is used.") public void setLayer(int layer)
设置此组件的图层属性的便捷方法。 方法setLayer(Integer)应该用于JLayeredPane预定义的层值。 使用setLayer(int),必须注意不要意外地与这些值发生冲突。- 参数
-
layer- 指定此内部框架的桌面图层的整数 - 从以下版本开始:
- 1.3
- 另请参见:
-
setLayer(Integer),JLayeredPane
-
getLayer
public int getLayer()
获取该组件的图层属性的便捷方法。- 结果
-
一个
Integer对象,指定此框架的桌面图层 - 另请参见:
-
JLayeredPane
-
getDesktopPane
@BeanProperty(bound=false) public JDesktopPane getDesktopPane()
在祖先层次结构中搜索JDesktop实例的便捷方法。 如果JInternalFrame找不到,则搜索desktopIcon树。- 结果
-
所述
JDesktopPane此内部帧属于,或null如果没有找到
-
setDesktopIcon
@BeanProperty(description="The icon shown when this internal frame is minimized.") public void setDesktopIcon(JInternalFrame.JDesktopIcon d)
设置JDesktopIcon与此相关JInternalFrame。- 参数
-
d- 要在桌面上显示的JDesktopIcon - 另请参见:
-
getDesktopIcon()
-
getDesktopIcon
public JInternalFrame.JDesktopIcon getDesktopIcon()
返回JDesktopIcon时,这个曾经JInternalFrame图标化。- 结果
-
桌面上显示
JDesktopIcon - 另请参见:
-
setDesktopIcon(javax.swing.JInternalFrame.JDesktopIcon)
-
getNormalBounds
public Rectangle getNormalBounds()
如果JInternalFrame未处于最大化状态,则返回getBounds(); 否则,返回JInternalFrame将恢复到的边界。- 结果
-
a
Rectangle包含处于正常状态时此帧的边界 - 从以下版本开始:
- 1.3
-
setNormalBounds
public void setNormalBounds(Rectangle r)
设置此内部框架的正常边界,此内部框架将从其最大化状态恢复到的边界。 此方法仅供桌面管理员使用。- 参数
-
r- 应恢复此内部框架的边界 - 从以下版本开始:
- 1.3
-
getFocusOwner
public Component getFocusOwner()
如果此JInternalFrame处于活动状态,则返回具有焦点的子项。 否则,返回null。- 结果
-
有焦点的组件,如果没有孩子有焦点,
null - 从以下版本开始:
- 1.3
-
getMostRecentFocusOwner
@BeanProperty(bound=false) public Component getMostRecentFocusOwner()
返回此JInternalFrame的子组件,该组件将在选择此JInternalFrame时获得焦点。 如果当前选择此JInternalFrame,则此方法返回与getFocusOwner方法相同的组件。 如果未选择此JInternalFrame,则将返回最近请求焦点的子组件。 如果没有子组件曾请求焦点,则返回此JInternalFrame的初始可聚焦组件。 如果不存在此类子JInternalFrame,则返回此JInternalFrame要关注的默认组件。- 结果
-
选择此
JInternalFrame时将获得焦点的子组件 - 从以下版本开始:
- 1.4
- 另请参见:
-
getFocusOwner(),isSelected
-
restoreSubcomponentFocus
public void restoreSubcomponentFocus()
请求内部框架将焦点恢复到具有焦点的最后一个子组件。 当用户选择此内部框架时,UI会使用此选项 - 例如,通过单击标题栏。- 从以下版本开始:
- 1.3
-
reshape
public void reshape(int x, int y, int width, int height)移动并调整此组件的大小。 与其他组件不同,此实现还强制重新布局,以便始终重新显示标题栏等框架装饰。- 重写:
-
reshape,类JComponent - 参数
-
x- 一个整数,给出组件的新水平位置,以容器左侧的像素为单位 -
y- 一个整数,给出组件的新垂直位置,以容器底部的像素为单位 -
width- 一个整数,给出组件的新宽度(以像素为单位) -
height- 一个整数,给出组件的新高度(以像素为单位) - 另请参见:
-
Component.setBounds(int, int, int, int)
-
addInternalFrameListener
public void addInternalFrameListener(InternalFrameListener l)
添加指定的侦听器以从此内部帧接收内部帧事件。- 参数
-
l- 内部框架侦听器
-
removeInternalFrameListener
public void removeInternalFrameListener(InternalFrameListener l)
删除指定的内部框架侦听器,以便它不再从此内部框架接收内部框架事件。- 参数
-
l- 内部框架侦听器
-
getInternalFrameListeners
@BeanProperty(bound=false) public InternalFrameListener[] getInternalFrameListeners()
返回添加到此JInternalFrame的所有InternalFrameListener的数组,JInternalFrame包含addInternalFrameListener。- 结果
-
如果没有添加任何侦听器,则添加所有
InternalFrameListener或空数组 - 从以下版本开始:
- 1.4
- 另请参见:
-
addInternalFrameListener(javax.swing.event.InternalFrameListener)
-
fireInternalFrameEvent
protected void fireInternalFrameEvent(int id)
触发内部帧事件。- 参数
-
id- 被触发事件的类型; 以下之一:-
InternalFrameEvent.INTERNAL_FRAME_OPENED -
InternalFrameEvent.INTERNAL_FRAME_CLOSING -
InternalFrameEvent.INTERNAL_FRAME_CLOSED -
InternalFrameEvent.INTERNAL_FRAME_ICONIFIED -
InternalFrameEvent.INTERNAL_FRAME_DEICONIFIED -
InternalFrameEvent.INTERNAL_FRAME_ACTIVATED -
InternalFrameEvent.INTERNAL_FRAME_DEACTIVATED
-
-
doDefaultCloseAction
public void doDefaultCloseAction()
触发INTERNAL_FRAME_CLOSING事件,然后执行内部框架的默认关闭操作指定的操作。 此方法通常由内部框架的关闭按钮的外观实现动作处理程序调用。- 从以下版本开始:
- 1.3
- 另请参见:
-
setDefaultCloseOperation(int),InternalFrameEvent.INTERNAL_FRAME_CLOSING
-
setDefaultCloseOperation
public void setDefaultCloseOperation(int operation)
设置当用户在此内部框架上启动“关闭”时默认发生的操作。 可能的选择是:
-
DO_NOTHING_ON_CLOSE -
没做什么。
这要求程序处理已注册的
InternalFrameListener对象的internalFrameClosing方法中的操作。 -
HIDE_ON_CLOSE - 自动使内部框架不可见。
-
DISPOSE_ON_CLOSE - 自动处理内部框架。
默认值为
DISPOSE_ON_CLOSE。 在执行指定的关闭操作之前,内部框架将触发INTERNAL_FRAME_CLOSING事件。- 参数
-
operation-一个中所定义的以下常量javax.swing.WindowConstants(由实现的接口JInternalFrame):DO_NOTHING_ON_CLOSE,HIDE_ON_CLOSE,或DISPOSE_ON_CLOSE - 另请参见:
-
addInternalFrameListener(javax.swing.event.InternalFrameListener),getDefaultCloseOperation(),JComponent.setVisible(boolean),dispose(),InternalFrameEvent.INTERNAL_FRAME_CLOSING
-
-
getDefaultCloseOperation
public int getDefaultCloseOperation()
返回用户在此内部框架上启动“关闭”时发生的默认操作。- 结果
- 用户关闭内部框架时将发生的操作
- 另请参见:
-
setDefaultCloseOperation(int)
-
pack
public void pack()
导致此JInternalFrame子组件以其首选大小布局。 首先恢复然后打包图标化或最大化的内部框架。 如果内部框架无法恢复,则其状态不会更改,也不会被打包。- 另请参见:
-
Window.pack()
-
show
public void show()
如果内部框架不可见,则将内部框架置于前面,使其可见,并尝试选择它。 第一次使内部框架可见时,此方法也会触发INTERNAL_FRAME_OPENED事件。 如果内部框架已经可见,则此方法不执行任何操作。 调用此方法与调用setVisible(true)具有相同的结果。
-
dispose
public void dispose()
使此内部框架不可见,未选中和关闭。 如果帧尚未关闭,则此方法将触发INTERNAL_FRAME_CLOSED事件。 调用此方法的结果类似于setClosed(true),但dispose始终成功关闭内部框架并且不会触发INTERNAL_FRAME_CLOSING事件。
-
toFront
public void toFront()
将这个内部框架带到前面。 将此内部框架放置在堆叠顺序的顶部,并对其他可见的内部框架进行相应的调整。- 另请参见:
-
Window.toFront(),moveToFront()
-
toBack
public void toBack()
将此内部框架发送到背面。 将此内部框架放置在堆叠顺序的底部,并对其他可见的内部框架进行相应的调整。- 另请参见:
-
Window.toBack(),moveToBack()
-
setFocusCycleRoot
public final void setFocusCycleRoot(boolean focusCycleRoot)
什么都没有,因为JInternalFrame必须始终是焦点遍历循环的根。- 重写:
-
setFocusCycleRoot类Container - 参数
-
focusCycleRoot- 忽略此值 - 从以下版本开始:
- 1.4
- 另请参见:
-
isFocusCycleRoot(),Container.setFocusTraversalPolicy(java.awt.FocusTraversalPolicy),Container.getFocusTraversalPolicy()
-
isFocusCycleRoot
public final boolean isFocusCycleRoot()
始终返回true因为所有JInternalFrame必须是焦点遍历循环的根。- 重写:
-
isFocusCycleRoot类Container - 结果
-
true - 从以下版本开始:
- 1.4
- 另请参见:
-
setFocusCycleRoot(boolean),Container.setFocusTraversalPolicy(java.awt.FocusTraversalPolicy),Container.getFocusTraversalPolicy()
-
getFocusCycleRootAncestor
@BeanProperty(bound=false) public final Container getFocusCycleRootAncestor()
始终返回null因为JInternalFrame必须始终是焦点遍历循环的根。- 重写:
-
getFocusCycleRootAncestor类Component - 结果
-
null - 从以下版本开始:
- 1.4
- 另请参见:
-
Container.isFocusCycleRoot()
-
getWarningString
@BeanProperty(bound=false) public final String getWarningString()
获取与此内部框架一起显示的警告字符串。 由于内部框架始终是安全的(因为它完全包含在可能需要警告字符串的窗口中),因此此方法始终返回null。- 结果
-
null - 另请参见:
-
Window.getWarningString()
-
paramString
protected String paramString()
返回此JInternalFrame的字符串表示JInternalFrame。 此方法仅用于调试目的,返回字符串的内容和格式可能因实现而异。 返回的字符串可能为空,但可能不是null。- 重写:
-
paramString类JComponent - 结果
-
此
JInternalFrame的字符串表示JInternalFrame
-
paintComponent
protected void paintComponent(Graphics g)
在拖动内部框架时,重写以允许优化绘制。- 重写:
-
paintComponent类JComponent - 参数
-
g- 要保护的Graphics对象 - 另请参见:
-
JComponent.paint(java.awt.Graphics),ComponentUI
-
getAccessibleContext
@BeanProperty(bound=false) public AccessibleContext getAccessibleContext()
获取与AccessibleContext相关的JInternalFrame。 对于内部帧,AccessibleContext采用AccessibleJInternalFrame对象的形式。 如有必要,将创建一个新的AccessibleJInternalFrame实例。- Specified by:
-
getAccessibleContext在Accessible接口中 - 重写:
-
getAccessibleContext在Component类 - 结果
-
AccessibleJInternalFrame,作为AccessibleContext的JInternalFrame - 另请参见:
-
JInternalFrame.AccessibleJInternalFrame
-
-