TableLayout gridLayout = new TableLayout ( new double[][]{ { TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED },
{ TableLayout.PREFERRED, TableLayout.PREFERRED, TableLayout.PREFERRED } } );
WebPanel gridPanel = new WebPanel ( gridLayout );
// Popup buttons
gridPanel.add ( new GroupPanel ( createPopupButton ( PopupWay.upLeft ), createPopupButton ( PopupWay.upCenter ),
createPopupButton ( PopupWay.upRight ) ), "1,0" );
gridPanel.add ( new GroupPanel ( false, createPopupButton ( PopupWay.leftUp ), createPopupButton ( PopupWay.leftCenter ),
createPopupButton ( PopupWay.leftDown ) ), "0,1" );
gridPanel.add ( new GroupPanel ( false, createPopupButton ( PopupWay.rightUp ), createPopupButton ( PopupWay.rightCenter ),
createPopupButton ( PopupWay.rightDown ) ), "2,1" );
gridPanel.add ( new GroupPanel ( createPopupButton ( PopupWay.downLeft ), createPopupButton ( PopupWay.downCenter ),
createPopupButton ( PopupWay.downRight ) ), "1,2" );
return new GroupPanel ( gridPanel );
}