• Post Reply Bookmark Topic Watch Topic
  • New Topic

Bean to UI Mapping

 
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...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!