frame.showHUDButton(false);
}
try {
// create a window
WindowSwing frameWindow = app.createWindow(frameSize.width, frameSize.height, Window2D.Type.PRIMARY, false, WonderlandHUD.HUD_SCALE, name);
frameWindow.setComponent(frameImpl);
frame.setWindow(frameWindow);
frame.setTitle(getTitle());
// create a view
frameView = hudDisplayer.createView(frameWindow);
frameWindow.addView(frameView);
// set view properties
frameView.setPixelScaleOrtho(WonderlandHUD.HUD_SCALE, false);
frameView.setSizeApp(new Dimension((int) (frameWindow.getWidth()), frameWindow.getHeight()), false);
frameView.setLocationOrtho(new Vector2f(0.0f, (float) (WonderlandHUD.HUD_SCALE.y * getWindow().getHeight() / 2 + WonderlandHUD.HUD_SCALE.y * frameImpl.getPreferredSize().height / 2)), false);
frameView.setOrtho(true, false);
// register listeners for events on the frame
frameImpl.addMouseMotionListener(frame);