[목차]


일정 관리 프로그램

캘린더의 기본적인 UI를 만들어본다.

1. Month View Frame

Untitled

2. Day View Frame

Untitled

Untitled

public class InputDialog extends JDialog{
		private String name;
		private String phone;
		public String getInputName(){
			return name;
		}
		public String getInputPhone(){
			return phone;
		}

		public InputDialog(JFrame parent) {
			// set parent frame and parent frame will be infocus
			super(parent,true);

			// some code here ...
			JButton okButton = new JButton("OK");

			okButton.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent arg0) {
							name = txtName.getText();
							phone = txtPhone.getText();
							// close the dialog
							setVisible(false);
					});
		}
}