I know...
I put the initialization in the wrong place!!กก Only the components created in the lifetime of the TestHierarchy can be got! So we should put it before the event occur. After it we can get nothing.

thank you.
 

2012/2/7 xiaokun <xiaokunhou@gmail.com>
Hi all,

The TestHierarchy only contain the hierarchy of the newly created components? Like the new opened dialogues, the new panel.. So we can easily find the affection after a event occurs with it. Am I right? 

In addition, how can i get a instance of it? when i just use the method new TestHierarchy(), it can't get anything. When I use the (TestHierarchy)AWTHierarchy.getDefault(), a type error occur. So what's the right way? 

Best Regards,

Xiaokun