I have a JTextField in a LogInWindow(JFrame). In that JTextField the user enters it's name.
I have another StudentWindow (JFrame) and its constructor has that user name String as a parameter.
In my xml file how can i inject the input from the JTextField ?
<!-- GUI Beans -->
<bean id="logInWindow" class="gui.LogInWindow">
<constructor-arg ref="controller"/>
<property name="nameJTextField" value="?? Need help here ??"/>
</bean>
<bean id="studentWindow" class="gui.StudentWindow">
<constructor-arg ref="????????"/>
</bean>
Thanks in advance.