// Add the display to the display list
displays.add(displayHost.getDisplay());
// Load the Pivot window
BXMLSerializer bxmlSerializer = new BXMLSerializer();
Window window;
try {
window = (Window)bxmlSerializer.readObject(SwingDemo.class.getResource("pivot_window.bxml"));
} catch (IOException exception) {
throw new RuntimeException(exception);
} catch (SerializationException exception) {
throw new RuntimeException(exception);
}
// Open the Pivot window on the display
window.open(displayHost.getDisplay());
// Open and select the internal frame
internalFrame.setLocation(240, 100);
internalFrame.setSize(480, 360);
internalFrame.setVisible(true);