Skip to content

How would you reset the default layout? #189

Closed Answered by andrewauclair
i-make-robots asked this question in Q&A
Discussion options

You must be logged in to vote

This is built into Modern Docking and can be seen in action in the demo.

ApplicationLayout defaultLayout = new WindowLayoutBuilder(alwaysDisplayed.getPersistentID())
		.dock(one.getPersistentID(), alwaysDisplayed.getPersistentID())
		.dock(two.getPersistentID(), one.getPersistentID(), DockingRegion.SOUTH)
		.dockToRoot(three.getPersistentID(), DockingRegion.WEST)
		.dock(four.getPersistentID(), two.getPersistentID(), DockingRegion.CENTER)
		.dock(propertiesDemoPanel.getPersistentID(), four.getPersistentID(), DockingRegion.CENTER)
		.dockToRoot(output.getPersistentID(), DockingRegion.SOUTH)
		.dockToRoot(themes.getPersistentID(), DockingRegion.EAST)
		.dock(explorer.getPersistentID(), themes.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by i-make-robots
Comment options

You must be logged in to vote
1 reply
@andrewauclair
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants