private HtmlSelectOneMenu createFieldMenu(){
  HtmlSelectOneMenu field=new HtmlSelectOneMenu();
  List children=field.getChildren();
  children.add(createSelectItem("Subject"));
  children.add(createSelectItem("Sender"));
  children.add(createSelectItem("Date"));
  children.add(createSelectItem("Priority"));
  children.add(createSelectItem("Status"));
  children.add(createSelectItem("To"));
  children.add(createSelectItem("Cc"));
  children.add(createSelectItem("To or Cc"));
  return field;
}

private HtmlSelectOneMenu createFieldMenu ( ) { HtmlSelectOneMenu field = new HtmlSelectOneMenu ( ) ; List children = field . getChildren ( ) ; children . add ( createSelectItem ( "Subject" ) ) ; children . add ( createSelectItem ( "Sender" ) ) ; children . add ( createSelectItem ( "Date" ) ) ; children . add ( createSelectItem ( "Priority" ) ) ; children . add ( createSelectItem ( "Status" ) ) ; children . add ( createSelectItem ( "To" ) ) ; children . add ( createSelectItem ( "Cc" ) ) ; children . add ( createSelectItem ( "To or Cc" ) ) ; return field ; }
creates the menu that allows the user to select a field .
