private void addSeparator(JComponent container,GridBagConstraints c){
  c.gridy=0;
  c.gridx++;
  c.gridheight=GridBagConstraints.REMAINDER;
  JComponent separator=new JSeparator(SwingConstants.VERTICAL);
  Insets tmpInsets=c.insets;
  c.insets=new Insets(SEPARATOR_MARGIN,0,SEPARATOR_MARGIN,0);
  container.add(separator,c);
  c.gridheight=1;
  c.insets=tmpInsets;
}

private void addSeparator ( JComponent container , GridBagConstraints c ) { c . gridy = 0 ; c . gridx ++ ; c . gridheight = GridBagConstraints . REMAINDER ; JComponent separator = new JSeparator ( SwingConstants . VERTICAL ) ; Insets tmpInsets = c . insets ; c . insets = new Insets ( SEPARATOR_MARGIN , 0 , SEPARATOR_MARGIN , 0 ) ; container . add ( separator , c ) ; c . gridheight = 1 ; c . insets = tmpInsets ; }
add a column separator .
