private Component createPanel(final String description,final JComponent component){
  final JPanel panel=new JPanel(new GridLayout(1,2));
  panel.add(new JLabel(description));
  panel.add(component);
  return panel;
}

private Component createPanel ( final String description , final JComponent component ) { final JPanel panel = new JPanel ( new GridLayout ( 1 , 2 ) ) ; panel . add ( new JLabel ( description ) ) ; panel . add ( component ) ; return panel ; }
creates a standard edit panel of the dialog .
