Binding of JText fields value to Info Class
- by Faizan Ahmed
Is there any way to automatic binding of Swing JTextFields to Info Class. e.g
private JTextField receiptId;
private JTextField Id;
public class Info {
private string receiptId;
private String id;
// Getters and Setters
}
Is there any way when I entered values from Swing page then automatically values bind with my Info class? After that I can pass my Info object to other classes instead of sending all Text Fields.