public static JTextField createTextEntry(String title,String entry,JComponent parent){
  JPanel pal=PaletteHelper.createHorizontalPanel(null);
  JLabel label=new JLabel(title);
  label.setHorizontalTextPosition(JLabel.RIGHT);
  JTextField tf=new JTextField(entry);
  label.setLabelFor(tf);
  pal.add(label);
  pal.add(tf);
  parent.add(pal);
  return tf;
}

public static JTextField createTextEntry ( String title , String entry , JComponent parent ) { JPanel pal = PaletteHelper . createHorizontalPanel ( null ) ; JLabel label = new JLabel ( title ) ; label . setHorizontalTextPosition ( JLabel . RIGHT ) ; JTextField tf = new JTextField ( entry ) ; label . setLabelFor ( tf ) ; pal . add ( label ) ; pal . add ( tf ) ; parent . add ( pal ) ; return tf ; }
create and add a text entry field to a jcomponent .
