public ModalDialog(Frame parent, String title, String text, String text2) {  
		this.yesNo = false;
		if (parent == null) {
			System.out.println(text);
			System.out.println(text2);
		}
		dialog = new Frame(title);
		dialog.add(new Label(text), "North");
		dialog.add(new Label(text2), "Center");
		Button b = new Button("Ok");
		b.setActionCommand("Close dialog");
		b.addActionListener(this);
		dialog.add(b, "South");
		dialog.setSize(350, 110);
		//dialog.show();

		finished = false;

	}