protected void layoutPanel(MapBean map){
  Dimension minimumSize=new Dimension(MapBean.DEFAULT_WIDTH,MapBean.DEFAULT_HEIGHT);
  JPanel hackPanel=new JPanel();
  hackPanel.setLayout(new BorderLayout());
  hackPanel.setOpaque(false);
  hackPanel.add(map,BorderLayout.CENTER);
  centerContainer=new JPanel();
  centerContainer.setLayout(new OverlayLayout(centerContainer));
  DrawingAttributes activeWidgetColors=getActiveWidgetColors();
  DrawingAttributes inactiveWidgetColors=getInactiveWidgetColors();
  int widgetButtonSize=getWidgetButtonSize();
  EmbeddedNavPanel navPanel=new EmbeddedNavPanel(activeWidgetColors,inactiveWidgetColors,widgetButtonSize);
  navPanel.setBounds(12,12,navPanel.getMinimumSize().width,navPanel.getMinimumSize().height);
  addMapComponent(navPanel);
  addMapComponent(new ProjectionStack());
  EmbeddedScaleDisplayPanel scaleDisplay=new EmbeddedScaleDisplayPanel();
  addMapComponent(scaleDisplay);
  widgets=new JPanel();
  widgets.setLayout(new BorderLayout());
  widgets.setBackground(OMGraphicConstants.clear);
  widgets.setOpaque(false);
  widgets.setBounds(0,0,map.getWidth(),map.getHeight());
  widgets.setMinimumSize(minimumSize);
  widgets.add(navPanel,BorderLayout.WEST);
  widgets.add(scaleDisplay,BorderLayout.EAST);
  setBorders(map,widgets);
  centerContainer.add(widgets);
  centerContainer.add(hackPanel);
  add(centerContainer,BorderLayout.CENTER);
}

protected void layoutPanel ( MapBean map ) { Dimension minimumSize = new Dimension ( MapBean . DEFAULT_WIDTH , MapBean . DEFAULT_HEIGHT ) ; JPanel hackPanel = new JPanel ( ) ; hackPanel . setLayout ( new BorderLayout ( ) ) ; hackPanel . setOpaque ( false ) ; hackPanel . add ( map , BorderLayout . CENTER ) ; centerContainer = new JPanel ( ) ; centerContainer . setLayout ( new OverlayLayout ( centerContainer ) ) ; DrawingAttributes activeWidgetColors = getActiveWidgetColors ( ) ; DrawingAttributes inactiveWidgetColors = getInactiveWidgetColors ( ) ; int widgetButtonSize = getWidgetButtonSize ( ) ; EmbeddedNavPanel navPanel = new EmbeddedNavPanel ( activeWidgetColors , inactiveWidgetColors , widgetButtonSize ) ; navPanel . setBounds ( 12 , 12 , navPanel . getMinimumSize ( ) . width , navPanel . getMinimumSize ( ) . height ) ; addMapComponent ( navPanel ) ; addMapComponent ( new ProjectionStack ( ) ) ; EmbeddedScaleDisplayPanel scaleDisplay = new EmbeddedScaleDisplayPanel ( ) ; addMapComponent ( scaleDisplay ) ; widgets = new JPanel ( ) ; widgets . setLayout ( new BorderLayout ( ) ) ; widgets . setBackground ( OMGraphicConstants . clear ) ; widgets . setOpaque ( false ) ; widgets . setBounds ( 0 , 0 , map . getWidth ( ) , map . getHeight ( ) ) ; widgets . setMinimumSize ( minimumSize ) ; widgets . add ( navPanel , BorderLayout . WEST ) ; widgets . add ( scaleDisplay , BorderLayout . EAST ) ; setBorders ( map , widgets ) ; centerContainer . add ( widgets ) ; centerContainer . add ( hackPanel ) ; add ( centerContainer , BorderLayout . CENTER ) ; }
new method added , called from addmapbeantopanel ( mapbean ) .
