Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Bean to UI Mapping  RSS feed

 
Pratik Lohia
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hav a bean say

Employee
{
private String name;
private int age;


}

with appropriate getters and setters

I have a UI screen to accept these fields in JTextFields as say,

JTextField jEmpName = new JTextField();
JTextField jAge = new JTextField();


How can I map the values entered in these text fields on the UI screen to that of the variables in the bean

Thanks...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!