mdi.java

来自「利用設定來製作簡易地 applet, 可以很快速的寫出 applet 來.」· Java 代码 · 共 33 行

JAVA
33
字号
package thinlet.drafts;

import thinlet.*;

/**
 *
 */
public class MDI {
	
	/**
	 *
	 */
	public void newDialog(Thinlet thinlet, Object desktop) {
		try {
			Object dialog = thinlet.parse("mdidialog.xml", this);
			thinlet.add(desktop, dialog, 0);
		} catch (Exception exc) {}
	}
	
	/**
	 *
	 */
	public void setModal(Thinlet thinlet, Object dialog, boolean modal) {
		thinlet.setBoolean(dialog, "modal", modal);
	}
	
	/**
	 *
	 */
	public void closeDialog(Thinlet thinlet, Object dialog) {
		thinlet.remove(dialog);
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?