public DateSelector(Calendar cal, DateTimeSelector sel) {
		calendar = cal;
		dts = sel;
		this.setLayout(new BorderLayout());
		this.setBorder(BorderFactory.createLineBorder(Color.gray));

		jp1 = new JP1();
		jp2 = new JP2();
		jp3 = new JP3();
		jp4 = new JP4();

		JPanel up = new JPanel(new BorderLayout());
		up.add(jp1, BorderLayout.NORTH);
		up.add(jp2, BorderLayout.CENTER);

		this.add(up, BorderLayout.NORTH);
		this.add(jp3, BorderLayout.CENTER);
		this.add(jp4, BorderLayout.SOUTH);
	}