Exemplo n.º 1
0
  /**
   * Initializes this swing view.
   *
   * @exception NullPointerException if the configuration is null
   */
  public void initialize() throws Exception, NullPointerException {

    super.initialize();

    javax.swing.UIManager.setLookAndFeel(getDefaultLookAndFeel());
    setChildItem(UserInterface.USER_INTERFACE_MODE, getDefaultUserInterfaceMode());
    /*??
            setChildItem(UserInterface.WINDOW_BOUNDS, configureWindowBounds(getDefaultWindowBounds()));
            setChildItem(UserInterface.DIALOG_BOUNDS, configureDialogBounds(getDefaultDialogBounds()));
            setChildItem(UserInterface.FRAME_BOUNDS, configureFrameBounds(getDefaultFrameBounds()));
            setChildItem(UserInterface.INTERNAL_FRAME_BOUNDS, configureInternalFrameBounds(getDefaultInternalFrameBounds()));
    */
    setChildItem(UserInterface.TITLE, getDefaultTitle());
    setChildItem(UserInterface.ICON, getDefaultIcon());
    setChildItem(UserInterface.MENU_BAR, createComponent(getDefaultMenuBar()));
    setChildItem(UserInterface.TOOL_BAR, createComponent(getDefaultToolBar()));
    setChildItem(UserInterface.CONTENTS_PANEL, createComponent(getDefaultContentsPanel()));
    setChildItem(UserInterface.STATUS_BAR, createComponent(getDefaultStatusBar()));
    setChildItem(UserInterface.RESIZABLE_FLAG, getDefaultResizableFlag());
  }