package gui; import businessLogic.BookingManager; import businessLogic.HouseManager; import com.toedter.calendar.*; import domain.Booking; import domain.RuralHouse; import exceptions.OfferCanNotBeBooked; import java.beans.*; import java.sql.Date; import java.text.*; import java.util.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class BookRuralHouseGUI extends JFrame { private static final long serialVersionUID = 1L; public static final long MILLSECS_PER_DAY= 24 * 60 * 60 * 1000; private JLabel jLabel1 = new JLabel(); private JComboBox jComboBox1; Vector ruralHouses; private JLabel jLabel2 = new JLabel(); private JLabel jLabel3 = new JLabel(); private JLabel jLabel4 = new JLabel(); private JTextField jTextField2 = new JTextField(); private JTextField jTextField3 = new JTextField(); private JTextField jTextField4 = new JTextField(); private JButton jButton2 = new JButton(); private JButton jButton3 = new JButton(); // Code for JCalendar private JCalendar jCalendar1 = new JCalendar(); private Calendar calendarMio = null; private JLabel jLabel5 = new JLabel(); public BookRuralHouseGUI() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } public BookRuralHouseGUI(String houseName,Date firstDay,Date lastDay) { try { jbInit(); // Put the "houseNumber", "firstDay" and "lastDay" in the graphical components of the user interface for (int i=0; i