private table createTabs(String selTab){
  td tabbar=new td("windowCenter",AlignType.LEFT,AlignType.MIDDLE,false);
  a tab=new a("#",new span("Find"));
  if (selTab.equals("Find")) {
    tab.setID("tabSelected");
  }
 else {
    tab.setID("tab");
    tab.setHref("/adempiere/WFindAdv?PTab=Find");
  }
  tab.setOnMouseOver("status='Find';return true;");
  tabbar.addElement(tab);
  tab=new a("#",new span("FindAdv"));
  if (selTab.equals("FindAdv")) {
    tab.setID("tabSelected");
  }
 else {
    tab.setID("tab");
    tab.setHref("/adempiere/WFindAdv?PTab=FindAdv");
  }
  tab.setOnMouseOver("status='FindAdv';return true;");
  tabbar.addElement(tab);
  table topTable=new table("0","0","0","100%",null);
  topTable.setID("WFindAdv.topTable");
  topTable.addElement(new tr(tabbar));
  return topTable;
}

private table createTabs ( String selTab ) { td tabbar = new td ( "windowCenter" , AlignType . LEFT , AlignType . MIDDLE , false ) ; a tab = new a ( "#" , new span ( "Find" ) ) ; if ( selTab . equals ( "Find" ) ) { tab . setID ( "tabSelected" ) ; } else { tab . setID ( "tab" ) ; tab . setHref ( "/adempiere/WFindAdv?PTab=Find" ) ; } tab . setOnMouseOver ( "status='Find';return true;" ) ; tabbar . addElement ( tab ) ; tab = new a ( "#" , new span ( "FindAdv" ) ) ; if ( selTab . equals ( "FindAdv" ) ) { tab . setID ( "tabSelected" ) ; } else { tab . setID ( "tab" ) ; tab . setHref ( "/adempiere/WFindAdv?PTab=FindAdv" ) ; } tab . setOnMouseOver ( "status='FindAdv';return true;" ) ; tabbar . addElement ( tab ) ; table topTable = new table ( "0" , "0" , "0" , "100%" , null ) ; topTable . setID ( "WFindAdv.topTable" ) ; topTable . addElement ( new tr ( tabbar ) ) ; return topTable ; }
prepare a layout for find functionality create appropriate fields for inputing searching keys
