摘要: package org.jivesoftware.pmsaas.sys.domain;import java.awt.BorderLayout;import java.awt.event.ComponentEvent;import java.awt.event.ComponentListener;import java.awt.event.ContainerEvent;import java.awt.event.ContainerListener;import java.awt.event.FocusEvent;import java.awt.event.FocusListener;impor 阅读全文
posted @ 2013-03-20 16:02 IamThat 阅读(1257) 评论(0) 推荐(0) 编辑
摘要: notify() and notifyAll() Java provides thewait(),notify(), andnotifyAll()methods to facilitate event notification. Thenotify()andnotifyAll()methods are used to wake up threads that are in a wait state. (Threads enter a wait state by calling thewait()method.)Thenotify()method wakes up only one thread 阅读全文
posted @ 2013-03-20 14:07 IamThat 阅读(420) 评论(0) 推荐(0) 编辑
摘要: JDK说明:joinpublic final void join() throws InterruptedException等待该线程终止。抛出:InterruptedException- 如果任何线程中断了当前线程。当抛出该异常时,当前线程的中断状态被清除测试代码:public class MyThread extends Thread { public static void main(String[] args) throws InterruptedException { A a=new A(); B b=new B(); a.start(); a.... 阅读全文
posted @ 2013-03-20 10:31 IamThat 阅读(256) 评论(0) 推荐(0) 编辑