public ModalDialog(Frame parent, String title, String text, DialogListener listener) {  
		this.yesNo = true;
		this.listener = listener;
		if (parent == null) {
			System.out.println(text);
		}

		dialog = new Frame(title);
		dialog.setLayout(new GridLayout(3, 1));

		dialog.add(new Label(text));

		Button b = new Button("Yes");
		b.setActionCommand("Yes");
		b.addActionListener(this);
		dialog.add(b);

		b = new Button("No");
		b.setActionCommand("No");
		b.addActionListener(this);
		dialog.add(b);

		dialog.setSize(350, 110);
		//dialog.show();

		finished = false;

	}