@Override public void layoutCompleted(LayoutCompleteEvent le){
  setAppropriateSize();
  m_gp.invalidate();
  m_js.revalidate();
  m_gp.repaint();
  jBtLayout.setEnabled(true);
}

@ Override public void layoutCompleted ( LayoutCompleteEvent le ) { setAppropriateSize ( ) ; m_gp . invalidate ( ) ; m_js . revalidate ( ) ; m_gp . repaint ( ) ; jBtLayout . setEnabled ( true ) ; }
this method is an implementation for layoutcompleteeventlistener class . it sets the size appropriate for m_gp graphpanel and and revalidates it ' s container jscrollpane once a layoutcompleteevent is received from the layoutengine .
