public void showPanel(){
  createPanel();
  prefixTextField.setText(DefaultLayerName);
  WindowSupport ws=getWindowSupport();
  MapHandler mh=(MapHandler)getBeanContext();
  Frame frame=null;
  if (mh != null) {
    frame=(Frame)mh.get(java.awt.Frame.class);
  }
  if (ws == null) {
    ws=new WindowSupport(this,i18n.get(LayerAddPanel.class,"title","Add Layer"));
    setWindowSupport(ws);
  }
  ws.displayInWindow(frame,-1,-1,-1,-1);
}

public void showPanel ( ) { createPanel ( ) ; prefixTextField . setText ( DefaultLayerName ) ; WindowSupport ws = getWindowSupport ( ) ; MapHandler mh = ( MapHandler ) getBeanContext ( ) ; Frame frame = null ; if ( mh != null ) { frame = ( Frame ) mh . get ( java . awt . Frame . class ) ; } if ( ws == null ) { ws = new WindowSupport ( this , i18n . get ( LayerAddPanel . class , "title" , "Add Layer" ) ) ; setWindowSupport ( ws ) ; } ws . displayInWindow ( frame , - 1 , - 1 , - 1 , - 1 ) ; }
show the panel in a jframe .
