question: private void loadStringValue ( JTextField comp , final String elementName , final String defaultText ) { String propValue = properties . getValue ( elementName ) ; if ( propValue != null && ! propValue . isEmpty ( ) ) { comp . setText ( propValue ) ; } else { comp . setText ( defaultText ) ; } }
target:  Gets the String value of a property and loads it into a JTextField