public static Container center(Component center){
  return Container.encloseIn(new BorderLayout(),center,BorderLayout.CENTER);
}

public static Container center ( Component center ) { return Container . encloseIn ( new BorderLayout ( ) , center , BorderLayout . CENTER ) ; }
convenience method that creates a border layout container and places the given component in the center
