Javatpoint Logo
Javatpoint Logo

Java JDesktopPane

The JDesktopPane class, can be used to create "multi-document" applications. A multi-document application can have many windows included in it. We do it by making the contentPane in the main window as an instance of the JDesktopPane class or a subclass. Internal windows add instances of JInternalFrame to the JdesktopPane instance. The internal windows are the instances of JInternalFrame or its subclasses.

Fields

Modifier and Type Field Description
static int LIVE_DRAG_MODE It indicates that the entire contents of the item being dragged should appear inside the desktop pane.
static int OUTLINE_DRAG_MODE It indicates that an outline only of the item being dragged should appear inside the desktop pane.

Constructor

Constructor Description
JDesktopPane() Creates a new JDesktopPane.

Java JDesktopPane Example

Output:

Java Jdesktoppane
Next TopicJava JEditorPane




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA