Adding lots of JFrame components would be tidious so i wish if there is some way to create a way to add all the JFrame components at once.
lbl_info = new JLabel("Values with an astrick(*) are necessary"); lbl_propertyNo = new JLabel("Property Numner: "); lbl_propertyName = new JLabel("* Property Name: "); lbl_purchasePrice = new JLabel("Purchase Price: "); lbl_rent = new JLabel("Rental charges (per month)"); lbl_occRate = new JLabel("Expected Occupancy Rate: "); lbl_mgmtFees = new JLabel("Property management fees (per month): "); lbl_insurance = new JLabel("Annual Cost of Insurance: "); lbl_maintenanceCost = new JLabel("Annual Maintenance Cost"); txt_propertyName = new JTextField("* Property Name: "); txt_purchasePrice = new JTextField("Purchase Price: "); txt_rent = new JTextField("Rental charges (per month)"); txt_occRate = new JTextField("Expected Occupancy Rate: "); txt_mgmtFees = new JTextField("Property management fees (per month): "); txt_insurance = new JTextField("Annual Cost of Insurance: "); txt_maintenanceCost = new JTextField("Annual Maintenance Cost");
here is my code