Default constructors of JDesktopPane
JDesktopPane(): It is a Default Constructor of JDesktopPane Class, it helps to Create a new JDesktopPane.
Create a new JDesktopPane
JDesktopPane desktopPane = new JDesktopPane();
Methods of the JDesktopPane
Methods |
Description |
---|---|
add(JInternalFrame frame) |
Method for Adds a JInternalFrame(Child) to the JDesktopPane(Parent). |
remove(JInternalFrame frame) |
Method for Removes a JInternalFrame from the JDesktopPane |
getAllFrames() |
Method for Returns an array of all the internal frames within the JDesktopPane. |
getSelectedFrame() |
Method for Returning the currently selected internal frame. |
Fields for Java JFrame
Fields |
Description |
---|---|
DEFAULT_DRAG_MODE |
It is a constant, that represents the default drag mode for internal frames. |
LIVE_DRAG_MODE |
This constant indicates that when an internal frame is dragged within the JDesktopPane, the entire contents of the item should be visible during the drag operation. |
OUTLINE_DRAG_MODE |
This constant indicates that, during the drag operation, only an outline or a frame-like representation of the item being dragged should appear inside the JDesktopPane. |
IS_CLOSED_PROPERTY |
It is a Constant,that is used for check the internal frame is close or not. |
Java JDesktopPane
Java JDesktopPane is a part of the Swing library that helps Java Developers to make desktop-like applications, It allows the developers to manage and organize child frames within a parent frame. In this article, we are going to see some constructors, methods, fields, and some examples of JDesktopPane.