How do i set a Bean property value from JTextField in Java?

andy101

New Member
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 ?\[code\]<!-- GUI Beans --><bean id="logInWindow" class="gui.LogInWindow"> <constructor-arg ref="controller"/> <property name="nameJTextField" value="http://stackoverflow.com/questions/14032934/?? Need help here ??"/></bean><bean id="studentWindow" class="gui.StudentWindow"><constructor-arg ref="????????"/></bean> \[/code\]Thanks in advance.
 
Back
Top