public void setProjection ( ProjectionManager . ProjectionClass pc ) { // clear out any fields removeAll ( ) ; for ( ProjectionManager . ProjectionParam pp : pc . paramList ) { // construct the label JPanel thisPanel = new JPanel ( ) ; thisPanel . add ( new JLabel ( pp . name + ": " ) ) ; // text input field JTextField tf = new JTextField ( ) ; pp . setTextField ( tf ) ; tf . setColumns ( 12 ) ; thisPanel . add ( tf ) ; add ( thisPanel ) ; } revalidate ( ) ; }
construct input fields based on Projection Class