code: public void printHtmlMenubar(PrintWriter out, ResourceBundle reg)
          throws DBException
      {
          char chMenubar = ScreenFieldViewAdapter.getFirstToUpper(this.getProperty(DBParams.MENUBARS), 'Y');
          if (chMenubar == 'Y')
          {
              String strUserName = this.getProperty(DBParams.USER_NAME);
              String strUserID = this.getProperty(DBParams.USER_ID);
              if ((strUserName == null) || (DBConstants.ANON_USER_ID.equals(strUserID)) || (Utility.isNumeric(strUserName)))
                  strUserName = DBConstants.BLANK;
              String strNav = reg.getString((strUserName.length() > 0) ? "htmlMenubar" : "htmlMenubarAnon");
              strNav = Utility.replaceResources(strNav, reg, null, null);
              String strScreen = ((BasePanel)this.getScreenField()).getScreenURL();
              strScreen = Utility.encodeXML(strScreen);
              String strTitle = this.getProperty("title");                // Menu page
              if ((strTitle == null) || (strTitle.length() == 0))
                  strTitle = ((BasePanel)this.getScreenField()).getTitle();
              strNav = Utility.replace(strNav, HtmlConstants.URL_TAG, strScreen);
              strNav = Utility.replace(strNav, HtmlConstants.TITLE_TAG, strTitle);
              strNav = Utility.replace(strNav, HtmlConstants.USER_NAME_TAG, strUserName);
              this.writeHtmlString(strNav, out);
          }
      }
docs: Print the top nav menu.
  @param out The html out stream.
  @param reg The resources object.
  @exception DBException File exception.