Forums Register Login

Bean to UI Mapping

+Pie Number of slices to send: Send
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...
I want my playground back. Here, I'll give you this tiny ad for it:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 687 times.
Similar Threads
Text boxes over an image
JTextField preferred size
How do I triggers object and add them to the collection?
invoke method with reflection
Setting Focus to JTextField !@#(*%$#&!
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 15:03:01.