In this paper,the concept of design patterns and the Java event-handling mechanism are introduced first. Then based on a detailed analysis of Java AWT library, three design patterns embodied in Java event-handling mechanism are investigated.
英
美
- 文章介绍了设计模式的概念及Java事件处理机制,并通过对JavaAWT类库的详细分析,从Java的事件处理机制中提取出3种主要的设计模式。