

Window addPropert圜hangeListener, addPropert圜hangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront Methods inherited from class java.awt.Window.addWindowListener(),ĭisables or enables decorations for this frame. WINDOW_STATE_CHANGED Since: JDK1.0 See Also: WindowEvent,.This event, the window close operation is canceled. Screen, which might be different from the physical screen of theįrame f = new Frame(GraphicsConfiguration gc) į.setLocation(10 + bounds.x, 10 + bounds.y) įrames are capable of generating the following types ofĮxplicitly hide or dispose the window while processing Virtual-coordinate system and would appear on the primary physical GraphicsConfiguration is not taken into account, theįrame location would be set at (10, 10) relative to the To the origin of the physical screen of the corresponding Location of the Frame at (10, 10) relative Method of a GraphicsConfiguration to find its origin in You must pass a virtual coordinate to this method. In such an environment, when calling setLocation, Of the primary screen in the virtual device, negative coordinatesĪre possible, as shown in the following figure. Origin of the virtual-coordinate system is at the upper left-handĬorner of the primary physical screen. In a virtual device multi-screen environment in which the desktopĪrea could span multiple physical screen devices, the bounds of allĬonfigurations are relative to the virtual-coordinate system. GraphicsConfiguration objects of the target screen GraphicsConfiguration object is one of the On a different screen device by constructing the Frameįrame(String title, GraphicsConfiguration). In a multi-screen environment, you can create a Frame

The default layout for a frame is BorderLayout.Ī frame may have its native decorations (i.e. Location of (insets.left, insets.top), and has a size of Subcomponents to the rectangle which has an upper-left corner Since the border area is included in the overall size of theįrame, the border effectively obscures a portion of the frame,Ĭonstraining the area available for rendering and/or displaying Value cannot be obtained until the frame is made displayable

These dimensions are platform-dependent, a valid insets Using the getInsets method, however, since The dimensions of the border area may be obtained The size of the frame includes any area designated for theīorder. A Frame is a top-level window with a title and a border.
