public static void addStrut(JComponent b,int layout,int size){
  if (size < 1)   return;
  b.add(getAxis(b,layout) == BoxLayout.X_AXIS ? Box.createHorizontalStrut(size) : Box.createVerticalStrut(size));
}

public static void addStrut ( JComponent b , int layout , int size ) { if ( size < 1 ) return ; b . add ( getAxis ( b , layout ) == BoxLayout . X_AXIS ? Box . createHorizontalStrut ( size ) : Box . createVerticalStrut ( size ) ) ; }
add a strut , or rigid spacing , to a ui component
