java - Generating repetitive code in Netbeans -
i curious if there someway netbeans or other application generate repetitive code me.
tf.add(squaretextfield1) tf.add(squaretextfield2) tf.add(squaretextfield3)
etc.
all squaretextfield variables instance fields declared @ class level , differ in name number @ end. rather not write same line 81 times.
copy & paste still fastest way :(
however 81 lot of text fields. suggest have @ reflection , use treat fields array.
Comments
Post a Comment