⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 containerevt.java

📁 linux下建立JAVA虚拟机的源码KAFFE
💻 JAVA
字号:
package java.awt;import java.awt.event.ContainerEvent;class ContainerEvt  extends ContainerEvent{	static ContainerEvt cache;ContainerEvt ( Component src, int evtId, Component child ){	super( src, evtId, child);}protected void dispatch () {	((Component)source).process( this);	if ( (Defaults.RecycleEvents & AWTEvent.CONTAINER_EVENT_MASK) != 0 ) recycle();}static synchronized ContainerEvt getEvent ( Component source, int id, Component child ){	if ( cache == null ){		return new ContainerEvt( source, id, child);	}	else {		ContainerEvt e = cache;		cache = (ContainerEvt)e.next;		e.next = null;				e.source = source;		e.id = id;		e.child = child;				return e;	}	}protected void recycle () {	synchronized ( ContainerEvt.class ) {		source = null;		next = cache;			cache = this;	}}}

⌨️ 快捷键说明

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