WindowPanel

WindowPanel is the outermost component of a JDance page. It renders the HTML document and its body.

For the complete API reference, see https://doc.jdance.org.

Overview

A complete page uses WindowPanel around an ordinary content component.

CODE
BasicLayout content = new BasicLayout(BasicLayout.Direction.VERTICAL);
content.add(new Text("Hello JDance"));
WindowPanel windowPanel = new WindowPanel();
windowPanel.setContent(content);
RESULT
Hello JDance

A WindowPanel must not be rendered inside the RESULT panel, which is already part of an HTML document. The preview below shows the inner content only.

The live RESULT renders only the inner content. The CODE snippet shows the WindowPanel that would be used at the application root.