protected DialogModel createModel() {
		String className = new JPanel().getClass().getName();
		if (className.startsWith("javax.swing.") && Platform.isSwingAvailable()) {
			try {
				Class<?> swingDialogModelClass = Class.forName("acm.io.SwingDialogModel");
				Class[] types = { Class.forName("java.awt.Component") };
				Object[] args = { myComponent };
				Constructor<?> con = swingDialogModelClass.getConstructor(types);
				return (DialogModel) con.newInstance(args);
			} catch (Exception ex) {
				return new AWTDialogModel(myComponent);
			}
		} else {
			return new AWTDialogModel(myComponent);
		}
	}